Let the tab bar fit however many tabs there are #21
Reference in New Issue
Block a user
Delete Branch "compact-nav"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Reported: the bottom tabs don't fit the width on a phone.
The cause is a hardcoded number, not tight spacing
Written when there were four tabs. Team (v0.14.0) and Admin (v0.13.0) arrived since and nothing updated it, so six items were being laid into four columns.
grid-auto-flow: columnwithgrid-auto-columns: 1frmakes the count follow the markup. That also handles something a fixed number can't: Admin only renders for an administrator, so the tab count genuinely differs between two people looking at the same install.Then the compactness
min-width: 0on each link, so a column may shrink below its label's natural width.No icon-only breakpoint
I wrote one, then worked out the widths and deleted it. Six tabs on a 320px phone give about 53px each; the widest label,
On-call, is about 38px at 10px. A media query that never fires is dead code, and the ellipsis is the backstop if a future tab gets a longer name.The links gained
aria-labels regardless — the icons arearia-hidden, so the visible text was the accessible name and shouldn't be the only one.The desktop sidebar is unaffected: it overrides
display,paddingandfont-sizeitself, so none of the phone rules reach it.Verified
make fmt lint test helm-lintgreen. Not verified on a phone — I can't open a browser here, so this is the cause identified from the CSS and the widths worked out on paper. Worth a look at 320px and 390px in device emulation before merging, and I'd want to know ifOn-callstill ellipsises.https://claude.ai/code/session_01RHPj4ggeFdEjKKfm4SHbD7