fix(ui): 工作空间页脚的 2×2 网格未生效 —— 通用选择器特异性不足

v87 实测:/workspace 页脚 display 仍是 flex(四段挤在一行,行数=1)。
原因:网格规则里的通用选择器 html[data-theme] .navi-footer 为 (0,2,1),
低于 EOF 处 html[data-theme] body .navi-footer 的 (0,2,2),
而工作空间的页脚父级是 .navi-footer-host(页面里没有 <footer> 元素),
前两条结构选择器都不匹配 → 网格规则整条落败。
修法:补两条结构路径 body > .navi-footer-host > .navi-footer((0,3,2))
与 body .navi-footer-host > .navi-footer。
This commit is contained in:
HomeDash Bot
2026-09-12 20:31:55 +08:00
parent d327864348
commit 6062c9cdc2

View File

@ -2412,6 +2412,8 @@ html.navi-dark[data-theme] .navi-footer .navi-quote { color: #94a3b8 !important;
grid-auto-flow: column 配合固定两行即可把「前两个 A」放左列、「后两个 quote」放右列。 */
html[data-theme] body:has(.minimal-home) .navi-footer-host > .navi-footer,
html[data-theme] body:not(:has(.minimal-home)) footer > .navi-footer,
html[data-theme] body > .navi-footer-host > .navi-footer,
html[data-theme] body .navi-footer-host > .navi-footer,
html[data-theme] .navi-footer {
display: grid !important;
grid-template-columns: auto 1fr !important;