Skip to content

Commit a0d7333

Browse files
committed
fix: adjust Sidebar component layout and improve CollapsibleTrigger styling
1 parent 33f76ab commit a0d7333

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/nimiq-vitepress-theme/src/layout/Sidebar.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function openAccordionInitialState(items: NimiqVitepressSidebar['items'][number]
4646
</span>
4747

4848
<DefineNavItem v-slot="{ item: { text, defaultPageLink, icon, description }, component }">
49-
<component :is="component" :href="withBase(defaultPageLink)" f-text-xs py-6 pl-12 pr-16 rounded-6 w-full hocus:bg-neutral-300 transition-colors :class="{ 'grid-cols-[max-content_1fr]': !!icon }" grid="~ rows-2 gap-x-12 items-center">
49+
<component :is="component" :href="withBase(defaultPageLink)" f-text-xs py-6 pl-12 pr-16 w-full hocus:bg-neutral-300 transition-colors :class="{ 'grid-cols-[max-content_1fr]': !!icon }" grid="~ rows-2 gap-x-12 items-center">
5050
<div v-if="icon" :class="icon" block size-28 row-span-full />
5151
<p flex-1 text-left>
5252
{{ text }}
@@ -58,13 +58,13 @@ function openAccordionInitialState(items: NimiqVitepressSidebar['items'][number]
5858
</DefineNavItem>
5959

6060
<CollapsibleRoot v-model:open="submoduleNavigatorOpen" w-full f-mt-sm>
61-
<CollapsibleTrigger bg-transparent w-full relative group ring="1.5 neutral-400" rounded-6>
61+
<CollapsibleTrigger bg-transparent w-full relative group ring="1.5 neutral-400" rounded="6 reka-open:b-0" transition-border-radius of-clip>
6262
<NavItem :item="currentDocModule" component="div" />
6363
<div absolute right-16 top-18 i-nimiq:chevron-top-down transition-opacity op="80 group-hocus:100" scale-80 />
6464
</CollapsibleTrigger>
6565

66-
<CollapsibleContent of-hidden data-open:shadow w-full z-90 mt-6>
67-
<div absolute z-90 bg-neutral-100 ring="1.5 neutral-300" rounded-6 data-open:animate-slide-down data-closed:animate-slide-up w="[calc(100%-30px)]">
66+
<CollapsibleContent of-hidden data-open:shadow w-full mt-0>
67+
<div absolute z-90 bg-neutral-100 ring="1.5 neutral-300" rounded-b-6 data-open:animate-slide-down data-closed:animate-slide-up w="[calc(100%-30px)]">
6868
<NavItem v-for="item in theme.modules" :key="item.text" :item="item" component="a" @click="submoduleNavigatorOpen = false" />
6969
</div>
7070
</CollapsibleContent>

0 commit comments

Comments
 (0)