From d98ec0feb29c12d863ceedf9828ec67332556495 Mon Sep 17 00:00:00 2001 From: Wolf Date: Tue, 29 Sep 2026 16:59:01 +0200 Subject: [PATCH] Fit three tabs in the phone top bar Co-Authored-By: Claude Sonnet 5.5 --- app/static/app.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/static/app.css b/app/static/app.css index 49ebaeb..82569c1 100644 --- a/app/static/app.css +++ b/app/static/app.css @@ -1339,3 +1339,18 @@ table.list select { padding: .25rem .4rem; } .affinity button { min-width: 2.75rem; } .check input { width: 1.25rem; height: 1.25rem; } } + +/* Three tabs and the cog, at 390px: the phone block's padding and size leave + the bar 37px too wide, and a nowrap bar that is too wide scrolls the whole + page sideways. Tighter tabs, still touch-high (see the coarse block). */ +@media (max-width: 640px) { + .top { gap: .4rem; } + .top nav a { padding-inline: .25rem; font-size: .9rem; } + .top nav a.icon { padding-inline: .55rem; } +} +/* On Roles the search field is what gives way, not the tabs: the nav keeps + the width its tabs need and the field takes what is left. */ +@media (max-width: 640px) { + .top:has(#search) nav { flex: 0 0 auto; } + .top:has(#search) nav a:not(.icon) { padding-inline: .2rem; } +}