fix(management): make mobile bottom navigation items uniform in width #174

Closed
opened 2026-09-30 12:37:02 +00:00 by yuris · 0 comments
Owner

Problem

Mobile bottom navigation items have varying widths based on text label length because the nav container uses justify-around and child items lack flex-1 basis-0. Shorter labels ("Stok", "Dasbor") have narrower click targets and uneven distribution compared to longer labels ("Pembelian", "Penjualan", "Pengaturan").

Acceptance Criteria

  • In apps/management/components/dashboard-nav.tsx, each item in the mobile bottom navigation bar (<nav>) uses flex-1 basis-0 min-w-0 and balanced padding to ensure uniform widths and hit areas.
  • Label text includes truncate max-w-full text-center to prevent wrapping or overflowing on small screens.
  • Verification passes: pnpm --filter garage test, pnpm --filter garage typecheck, and .forgejo/scripts/biome-gate.sh.
## Problem Mobile bottom navigation items have varying widths based on text label length because the nav container uses `justify-around` and child items lack `flex-1 basis-0`. Shorter labels ("Stok", "Dasbor") have narrower click targets and uneven distribution compared to longer labels ("Pembelian", "Penjualan", "Pengaturan"). ## Acceptance Criteria - [ ] In `apps/management/components/dashboard-nav.tsx`, each item in the mobile bottom navigation bar (`<nav>`) uses `flex-1 basis-0 min-w-0` and balanced padding to ensure uniform widths and hit areas. - [ ] Label text includes `truncate max-w-full text-center` to prevent wrapping or overflowing on small screens. - [ ] Verification passes: `pnpm --filter garage test`, `pnpm --filter garage typecheck`, and `.forgejo/scripts/biome-gate.sh`.
yuris closed this issue 2026-09-30 12:40:34 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
yuris/garage#174
No description provided.