From 2d3b1e31dec157eddf6427fac60125c1fefce367 Mon Sep 17 00:00:00 2001 From: HomeDash Bot Date: Sat, 12 Sep 2026 08:12:09 +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=E7=A7=BB=E5=87=BA=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E6=B5=81=EF=BC=8C=E5=BD=BB=E5=BA=95=E4=BF=AE=E6=8E=89?= =?UTF-8?q?=20minimal=20=E7=BA=B5=E5=90=91=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 实测:仅压缩内边距后 .navi-footer-host 仍有 37px 高且在 flow 中, 900x520 下 minimal 的 scrollH=536 > viewH=520(溢出 16px)。 改为 position:fixed 后不再撑高页面;搜索栏与按钮组已在 bottom:60px,不会相撞。 workspace 视图原本就是这样处理。 同时记录另一处误判:矩阵里"900x520 失去深色"是我等待不足(2s)抢在 navi.js 应用主题前测量所致;复测 mq=true/navi-dark 均已生效,深色无问题。 --- web/navi.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/web/navi.css b/web/navi.css index ca98c84..c10e063 100644 --- a/web/navi.css +++ b/web/navi.css @@ -1789,8 +1789,20 @@ html.navi-dark body .navi-ws-notice-title { 只对"矮窗口"收紧:缩小内边距/字号并禁止换行(矮窗口通常较宽,不会横向溢出)。 高窗口与移动端不受影响。 */ @media (max-height: 560px) { + /* 关键:矮视口下把备案号移出文档流。 + 实测:仅压缩内边距后 .navi-footer-host 仍有 37px 高度且在 flow 里, + 页面被顶高 16px(minimal 900x520 scrollH 536 > viewH 520)。 + 改成 fixed 后不再撑高页面;搜索栏/按钮组已上移到 bottom:60px,不会相撞。 + (workspace 视图本来就是这样处理的。) */ html[data-theme] .navi-footer-host { + position: fixed !important; + left: 0 !important; + right: 0 !important; + bottom: 0 !important; + margin: 0 !important; padding: 2px !important; + z-index: 880 !important; + pointer-events: auto !important; } html[data-theme] .navi-footer { margin: 4px auto 0 !important;