Fit three tabs in the phone top bar
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7dcb2c1705
commit
d98ec0feb2
1 file changed
+15
@@ -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; }
|
||||
}
|
||||
Reference in new issue
Block a user