mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
The admin panel's secondary top bar (settingHeaderBar: Settings/People/Reports/ Attachments/Translation/Info) renders inside #header-quick-access, whose mobile rules scale all text/icons 2x. That made the admin tabs 28px text / 56px icons — huge, overlapping the "Version" label. Add a scoped, higher-specificity override (plus the .iphone-device fallback) capping them at 15px text / 18px icons. Verified via Playwright iPhone-profile screenshot. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
79 lines
2.8 KiB
CSS
79 lines
2.8 KiB
CSS
#header #header-main-bar .setting-header-btn {
|
|
border-radius: 3px;
|
|
color: #f2f2f2;
|
|
margin-inline-start: 20px;
|
|
padding-inline-end: 10px;
|
|
height: 28px;
|
|
font-size: 13px;
|
|
float: inline-start;
|
|
overflow: hidden;
|
|
line-height: 28px;
|
|
margin: 0 2px;
|
|
}
|
|
#header #header-main-bar .setting-header-btn.active,
|
|
#header #header-main-bar .setting-header-btn:hover:not(.is-disabled) {
|
|
background: rgba(0,0,0,0.15);
|
|
}
|
|
#header #header-main-bar .setting-header-btn i.fa {
|
|
float: inline-start;
|
|
display: block;
|
|
line-height: 28px;
|
|
color: #f2f2f2;
|
|
margin: 0 10px;
|
|
}
|
|
#header #header-main-bar .setting-header-btn + span {
|
|
display: inline-block;
|
|
margin-top: 1px;
|
|
margin-inline-end: 10px;
|
|
}
|
|
|
|
/* Keep all admin tabs (Settings, People, Reports, Attachments, Translation,
|
|
Version) visible on narrow screens. The bar is a fixed 40px tall and the
|
|
tabs float, so on narrow widths they wrapped below the bar and were clipped
|
|
(disappeared). Let the bar grow and wrap the tabs to as many rows as needed
|
|
so none are ever hidden. Scoped via :has() so the board header is untouched. */
|
|
#header #header-main-bar:has(.setting-header-btns) {
|
|
height: auto;
|
|
min-height: 40px;
|
|
padding-bottom: 6px;
|
|
overflow: visible;
|
|
}
|
|
#header #header-main-bar .setting-header-btns.left {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 4px;
|
|
float: none;
|
|
}
|
|
#header #header-main-bar .setting-header-btn {
|
|
float: none;
|
|
margin: 2px 0;
|
|
}
|
|
|
|
/* #6419: the admin panel's 2nd top bar (settingHeaderBar) is rendered inside
|
|
#header-quick-access, whose mobile rules scale ALL text/icons 2x
|
|
(`#header-quick-access * { font-size: inherit }` + `.fa { font-size: 2em }`).
|
|
That made the admin tab buttons 28px text / 56px icons — huge, overlapping the
|
|
"Version" label and the content below. Cap them at a normal touch size on small
|
|
screens. Selectors are more specific than the 2em rules (and repeated for the
|
|
.iphone-device JS-detection fallback) so they win. */
|
|
@media screen and (max-width: 800px) {
|
|
#header-quick-access .setting-header-btns .setting-header-btn,
|
|
#header #header-main-bar .setting-header-btns .setting-header-btn,
|
|
#header-quick-access .setting-header-btns .setting-header-btn span,
|
|
#header #header-main-bar .setting-header-btns .setting-header-btn span {
|
|
font-size: 15px !important;
|
|
}
|
|
#header-quick-access .setting-header-btns .setting-header-btn i.fa,
|
|
#header #header-main-bar .setting-header-btns .setting-header-btn i.fa {
|
|
font-size: 18px !important;
|
|
}
|
|
}
|
|
.iphone-device #header-quick-access .setting-header-btns .setting-header-btn,
|
|
.iphone-device #header-quick-access .setting-header-btns .setting-header-btn span {
|
|
font-size: 15px !important;
|
|
}
|
|
.iphone-device #header-quick-access .setting-header-btns .setting-header-btn i.fa {
|
|
font-size: 18px !important;
|
|
}
|