Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fix sidebar class style

Smaug6739693a03684954
diff --git a/frontend/components/Sidebar/SidebarItem.vue b/frontend/components/Sidebar/SidebarItem.vue
index 42c9802a..d3cc5c82 100644
--- a/frontend/components/Sidebar/SidebarItem.vue
+++ b/frontend/components/Sidebar/SidebarItem.vue
@@ -2,7 +2,7 @@
<span class="item" @click="onClick" :draggable="draggable" @dragstart="dragStart" @dragover.prevent="dragOver" @drop="drop" @dragleave="dragLeave" :class="{ 'drag-over': isDragOver }">
<Icon :name="getIcon()" />
<NuxtLink :to="item.route" style="width: 100%">{{ item.title }} </NuxtLink>
- <NuxtLink to="/dashboard/docs/new" class="new"> <Icon name="plus" v-if="item.data.type === 'category' && item.parent_id" fill="var(--font-color)" /> </NuxtLink>
+ <NuxtLink to="/dashboard/docs/new" class="new" v-if="item.data.type === 'category' && item.parent_id"> <Icon name="plus" fill="var(--font-color)" /> </NuxtLink>
<slot></slot>
</span>
</template>
@@ -103,7 +103,7 @@ const drop = async (event: DragEvent) => {
width: 98%;
font-size: 15.5px;
&:hover,
- &:has(.router-link-exact-active) {
+ &:has(.router-link-exact-active:not(.new)) {
background: var(--bg-contrast-2);
}