外壳:侧栏改 fixed,请求页改名日志,错误提示点击复制,弹窗锁滚动

侧栏从 sticky 改 fixed:sticky 的位置跟着 scrollTop 走,滚到底时
scrollTop 是 scrollHeight 减 clientHeight,在 Windows 显示缩放下是
小数,部分图标会跳 1px;fixed 按视口摆放,不参与这个运算。网格第一列
只当占位,主区显式站到第二列。

错误提示是拿去粘贴排查的,点击改成复制而不是关闭,关闭交给自动消失;
局域网 http 下没有 clipboard API,退回 execCommand。撤回/重做各加
2.5 秒冷却,窗内连点算一次,顺带避开重做备份名的同秒覆盖。弹窗打开
时锁住背景滚动,滚动条位置由 scrollbar-gutter 常驻,不横向跳。
This commit is contained in:
2026-08-12 13:17:35 +08:00
parent 129a76696b
commit f57eb55328
4 changed files with 78 additions and 14 deletions
+6
View File
@@ -182,6 +182,12 @@ html {
scrollbar-gutter: stable;
}
/* 模态框开着时锁住背后的页面滚动。:modal 只匹配 showModal() 打开的 dialog;
滚动条的位置由上面的 scrollbar-gutter 常驻留出,锁定解锁都不会横向跳动 */
html:has(:modal) {
overflow: hidden;
}
body {
margin: 0;
background: var(--c-bg);