Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changes/mobile-nav-label-size.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Fixed

- Increased the mobile bottom navigation labels from 10px to 12px with a 16px line height, keeping 56px touch targets on small screens.
8 changes: 4 additions & 4 deletions frontend/src/lib/components/mobile-bottom-nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
type="button"
data-cuelume-toggle={item.id === 'new' ? 'release' : 'tick'}
class={[
'flex min-h-14 w-full flex-col items-center justify-center gap-1 rounded-md px-1 text-[0.625rem] font-medium transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none',
'flex min-h-14 w-full flex-col items-center justify-center gap-1 rounded-md px-1 text-xs font-medium transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none',
item.id === 'new'
? 'text-primary'
: active
Expand All @@ -92,7 +92,7 @@
>
<Icon class={item.id === 'new' ? 'size-5' : 'size-4'} />
</span>
<span class="max-w-full truncate leading-none">{labelFor(item.id)}</span>
<span class="max-w-full truncate leading-4">{labelFor(item.id)}</span>
</button>
</li>
{/each}
Expand All @@ -104,7 +104,7 @@
{...props}
type="button"
class={[
'flex min-h-14 w-full flex-col items-center justify-center gap-1 rounded-md px-1 text-[0.625rem] font-medium transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none',
'flex min-h-14 w-full flex-col items-center justify-center gap-1 rounded-md px-1 text-xs font-medium transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none',
moreActive ? 'bg-accent text-foreground' : 'text-muted-foreground'
]}
aria-current={moreActive ? 'page' : undefined}
Expand All @@ -113,7 +113,7 @@
<span class="flex size-5 items-center justify-center">
<MoreIcon class="size-4" />
</span>
<span class="max-w-full truncate leading-none">{m.sidebar_more()}</span>
<span class="max-w-full truncate leading-4">{m.sidebar_more()}</span>
</button>
{/snippet}
</DropdownMenu.Trigger>
Expand Down
Loading