Skip to content

Commit

Permalink
fix: remove toc bottom border when link is empty
Browse files Browse the repository at this point in the history
Signed-off-by: ZTL-UwU <[email protected]>
  • Loading branch information
ZTL-UwU committed Jul 11, 2024
1 parent f3596d2 commit 383265c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/layout/Toc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<p class="mb-2 text-base font-semibold">
{{ title }}
</p>
<LayoutTocTree :links="toc.links" :level="0" :class="[links && 'pb-5 border-b']" />
<LayoutTocTree :links="toc.links" :level="0" :class="[links.length && 'pb-5 border-b']" />
<div v-if="links" class="pt-5 text-muted-foreground">
<NuxtLink
v-for="(link, i) in links"
Expand Down

0 comments on commit 383265c

Please sign in to comment.