From 67038ce4de6025ffe9a36c2eff9d6e7402a27e30 Mon Sep 17 00:00:00 2001 From: HomeDash Bot Date: Sat, 12 Sep 2026 07:55:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(layout):=20=E7=9F=AE=E8=A7=86=E5=8F=A3?= =?UTF-8?q?=E4=B8=8B=E5=A4=87=E6=A1=88=E5=8F=B7=E4=B8=8D=E5=86=8D=E6=92=91?= =?UTF-8?q?=E9=AB=98=E9=A1=B5=E9=9D=A2=EF=BC=88=E4=BF=AE=20minimal=20?= =?UTF-8?q?=E7=BA=B5=E5=90=91=E6=BB=9A=E5=8A=A8=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 实测复现:900x520 时 .navi-footer-host 由 39px 换行涨到 69px,因处于文档流 (margin-top:auto)把页面顶高 47px,minimal 出现纵向滚动;1280x720 等常见尺寸 复现不出来,所以此前漏检。 只对 max-height:560px 收紧:缩小内边距/字号 + 禁止换行,并同步上移搜索栏 与按钮组,避免与备案号相撞。高窗口与移动端不受影响。 --- web/navi.css | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/web/navi.css b/web/navi.css index bc2dbdb..ca98c84 100644 --- a/web/navi.css +++ b/web/navi.css @@ -1782,3 +1782,29 @@ html.navi-dark body .navi-ws-modal-title, html.navi-dark body .navi-ws-notice-title { color: #e8eefc !important; } + +/* ── 矮视口下备案号不再撑高页面 ── + 实测复现:900x520 时 .navi-footer-host 从 39px 换行涨到 69px, + 而它在文档流里(margin-top:auto),于是页面被顶高 47px → 出现纵向滚动。 + 只对"矮窗口"收紧:缩小内边距/字号并禁止换行(矮窗口通常较宽,不会横向溢出)。 + 高窗口与移动端不受影响。 */ +@media (max-height: 560px) { + html[data-theme] .navi-footer-host { + padding: 2px !important; + } + html[data-theme] .navi-footer { + margin: 4px auto 0 !important; + padding: 5px 12px !important; + font-size: 11.5px !important; + flex-wrap: nowrap !important; + white-space: nowrap !important; + max-width: calc(100% - 12px) !important; + overflow: hidden !important; + } + html[data-theme] .navi-search-bar { + bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important; + } + html[data-theme] .navi-dock { + bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important; + } +}