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; } +}