Skip to content

Commit 73b9829

Browse files
committed
feat(sidebar): current page indicator
1 parent cf15286 commit 73b9829

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

app/app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ useHead({
5656
5757
/* TODO: Weird that this border-color is ignored by Unocss. Might need to investigate further. */
5858
* {
59-
border-color: hsl(var(--border)) !important;
59+
border-color: hsl(var(--border));
6060
}
6161
6262
@media (prefers-color-scheme: light) {

app/components/custom/breadcrumb.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ watch(() => route.path, () => {
2222
}
2323
}
2424
})
25-
console.log(breadcrumbs.value)
2625
}, { immediate: true })
2726
</script>
2827

app/components/custom/sidebar.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ const sidebarData = ref({
194194
<SidebarMenuSubItem
195195
v-for="subItem in item.items"
196196
:key="subItem.title"
197+
class="flex items-center"
197198
>
199+
<div v-if="$route.path === subItem.url" class="border-text mr-2 h-4 w-1 border-l-2 border-foreground rounded -ml-3" />
198200
<SidebarMenuSubButton as-child>
199201
<NuxtLink :href="subItem.url">
200202
<span>{{ subItem.title }}</span>

0 commit comments

Comments
 (0)