fabrica

hanna/fabrica

style(web): stop the mobile repo tab strip overflowing the page

a850956 · hanna committed on 2026-07-26

The tab strip is a flex child; without min-width:0 it could not shrink
below its content, so overflow-x:auto never engaged and the tabs pushed
the page past the viewport. Constrain it (min-width:0, max-width:100%)
at the base `.repo-nav .repo-tabs` specificity so it scrolls in place.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed by hannaSSH key fingerprint: SHA256:4g9cWhkAAw8gwqhJUcVbSnGEvdGwklW+1Aa/fMUu59k
1 files changed · +7 −1UnifiedSplit
assets/base.css +7 −1
@@ -2587,7 +2587,13 @@ td.diff-empty {
2587 flex-direction: column;2587 flex-direction: column;
2588 align-items: stretch;2588 align-items: stretch;
2589 }2589 }
2590 .repo-tabs {2590 /* min-width:0 lets the strip shrink below its content so overflow-x:auto
2591 actually scrolls, instead of the tabs pushing the whole page wider than
2592 the viewport. The specificity matches the base `.repo-nav .repo-tabs`. */
2593 .repo-nav .repo-tabs {
2594 flex: 1 1 auto;
2595 min-width: 0;
2596 max-width: 100%;
2591 flex-wrap: nowrap;2597 flex-wrap: nowrap;
2592 overflow-x: auto;2598 overflow-x: auto;
2593 -webkit-overflow-scrolling: touch;2599 -webkit-overflow-scrolling: touch;