Skip to content

Commit

Permalink
chore: apply automated updates
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Sep 4, 2024
1 parent 8b9e3fa commit b774fcd
Showing 1 changed file with 27 additions and 14 deletions.
41 changes: 27 additions & 14 deletions app/pages/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,22 @@ onMounted(() => {
<UContentToc title="On this page" :links="tocLinks" class="hidden lg:block" />
</template>
<!-- mobile -->
<div v-if="tocMobileLinks.length > 1"
class="float-right mt-4 top-[calc(var(--header-height)_+_0.5rem)] z-10 flex justify-end sticky mb-2 lg:hidden">
<UDropdown v-model:open="tocMobileOpen" :items="tocMobileLinks" :popper="{ placement: 'bottom-end' }"
:mode="isMobile ? 'click' : 'hover'">
<UButton color="white" label="On this page" :trailing="false"
:icon="`i-heroicons-chevron-${tocMobileOpen ? 'down' : 'left'}-20-solid`" />
<div
v-if="tocMobileLinks.length > 1"
class="float-right mt-4 top-[calc(var(--header-height)_+_0.5rem)] z-10 flex justify-end sticky mb-2 lg:hidden"
>
<UDropdown
v-model:open="tocMobileOpen"
:items="tocMobileLinks"
:popper="{ placement: 'bottom-end' }"
:mode="isMobile ? 'click' : 'hover'"
>
<UButton
color="white"
label="On this page"
:trailing="false"
:icon="`i-heroicons-chevron-${tocMobileOpen ? 'down' : 'left'}-20-solid`"
/>
</UDropdown>
</div>

Expand All @@ -95,14 +105,17 @@ onMounted(() => {
<div class="space-y-6">
<UDivider type="dashed" />
<div class="mb-4">
<UPageLinks class="inline-block" :links="[
{
icon: 'i-ph-pen-duotone',
label: 'Edit this page on GitHub',
to: `https://github.com/${appConfig.docs.github}/edit/${appConfig.docs.branch || 'main'}/docs/${page._file}`,
target: '_blank',
},
]" />
<UPageLinks
class="inline-block"
:links="[
{
icon: 'i-ph-pen-duotone',
label: 'Edit this page on GitHub',
to: `https://github.com/${appConfig.docs.github}/edit/${appConfig.docs.branch || 'main'}/docs/${page._file}`,
target: '_blank',
},
]"
/>
</div>
<UContentSurround v-if="surround?.length" class="mb-4" :surround="surround" />
</div>
Expand Down

0 comments on commit b774fcd

Please sign in to comment.