HomeDash Bot
ab2e514e00
fix(ui): 页脚真凶——同特异性覆盖 .navi-footer 的 display,恢复横排一行
几何实测(v69):.navi-footer 运行时 display=block,四个子元素纵向堆叠
(y=680/701/722/743),盒高 26px 而已 bottom=720 →
每日一言在视口下方(y=743 > 720),**根本没有显示**。
此前我改高度、行高、加 !important、挪到文件末尾全部无效,
因为根因是 824 行的
html[data-theme] body:has(.minimal-home) .navi-footer-host > * { display: block !important }
—— 特异性 (0,2,1) 高于我的 (0,1,1):同等 !important 下按特异性取胜,与顺序无关。
修法:用同特异性选择器(.navi-footer-host > .navi-footer)覆盖为
display:flex + flex-direction:row + nowrap,子项高度 auto,每日一言省略号。
判据修正(此前两次误判为成功):
不再只看 height>0,而要求 y>=0 且 bottom<=innerHeight —— 元素有尺寸但在视口外仍属不可见。