Skip to content

Commit e275dc6

Browse files
committed
fix(ui): make docs surround nav more compact on mobile and revert submit button width
- Add responsive padding and gap to UContentSurround for mobile - Add top margin to separate surround from content - Revert full-width submit button on contact form (bad UX)
1 parent 37ea68c commit e275dc6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

pages/[...slug].vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,15 @@ definePageMeta({
103103
</ContentRenderer>
104104
</div>
105105

106-
<UContentSurround v-if="isDocsPage && surround" :surround="surround" />
106+
<UContentSurround
107+
v-if="isDocsPage && surround"
108+
:surround="surround"
109+
:ui="{
110+
root: 'grid grid-cols-2 gap-4 sm:gap-8 mt-8 sm:mt-12',
111+
link: 'px-4 py-4 sm:px-6 sm:py-8',
112+
linkLeading: 'mb-2 sm:mb-4',
113+
}"
114+
/>
107115

108116
<template v-if="isDocsPage && page?.body?.toc?.links?.length" #toc>
109117
<UContentToc :links="page.body.toc.links" :title="t('docs.toc')" highlight />

pages/contact.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function onSubmit() {
9696
/>
9797
</UFormField>
9898

99-
<UButton type="submit" size="lg" class="w-full sm:w-auto">
99+
<UButton type="submit" size="lg">
100100
{{ t('contact.send') }}
101101
</UButton>
102102
</form>

0 commit comments

Comments
 (0)