From 0cd0d253d395bda2742e8b482cba4d4230197ded Mon Sep 17 00:00:00 2001 From: HomeDash Bot Date: Sat, 12 Sep 2026 17:47:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E9=A1=B5=E8=84=9A=E8=A1=A5=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6=E7=BA=A6=E6=9D=9F=20+=20=E6=9B=B4=E6=AD=A3=E4=B8=8A?= =?UTF-8?q?=E4=B8=80=E6=8F=90=E4=BA=A4=E7=9A=84=E6=A0=B9=E5=9B=A0=E5=8F=99?= =?UTF-8?q?=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更正:上一提交称 824 行 'display: block' 压制了 flex —— 实际读该行是 .navi-footer-host > * { pointer-events: auto } 设的是 pointer-events,与 display 无关。真实成因是 **折行**: 页脚宽度实测仅约 192px(内容需约 470px),flex-wrap 生效下折成 3~4 行, 总高约 63px(与 scrollHeight=65 吻合),第 4 行的每日一言被排到 y=743, 超出视口 720 → 不可见。 本版补 width: max-content + max-width: calc(100vw - 24px), 配合 v70 的 flex-wrap: nowrap,使四个子项落在同一行。 判据仍为 y>=0 且 bottom<=innerHeight(元素有尺寸但位于视口外不算可见)。 --- web/navi.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web/navi.css b/web/navi.css index c4e2974..de1498c 100644 --- a/web/navi.css +++ b/web/navi.css @@ -2196,6 +2196,9 @@ html[data-theme] body:has(.minimal-home) .navi-footer-host > .navi-footer { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; + width: max-content !important; + max-width: calc(100vw - 24px) !important; + min-width: 0 !important; align-items: center !important; justify-content: center !important; height: auto !important; min-height: 0 !important; max-height: 20px !important; @@ -2217,3 +2220,10 @@ html[data-theme] body:has(.minimal-home) .navi-footer-host .navi-quote { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; line-height: 15px !important; height: auto !important; min-height: 0 !important; } + +/* v71 更正:上方 v70 注释里"display 被压成 block"的判断有误。 + 824 行那条 body:has(.minimal-home) .navi-footer-host > * 设的是 pointer-events, + 不是 display。实测堆叠的成因是 **flex-wrap 折行 + 页脚宽度仅约 192px** + (内容需约 470px)→ 折成 3~4 行、总高约 63px(= scrollHeight 65), + 第 4 行的每日一言被排到 y=743(视口 720 之外)因而不可见。 + 因此修复要点是 flex-wrap:nowrap(v70 已有)+ 宽度 max-content(本版补上)。 */