Peach: Local-first video metadata scraper and media manager.
fix(onboarding): 收紧教程分隔线并稳定悬停
longmeidaob4c2eeb9e5b5
diff --git a/docs/BOARD_UI.md b/docs/BOARD_UI.mdindex 94f9a9432..65c71a401 100644--- a/docs/BOARD_UI.md+++ b/docs/BOARD_UI.md@@ -349,8 +349,8 @@ Announcement 的图标标题动作结构和 RareUI Task List 的 24px 圆形状后移。专用状态接口汇总馆藏、采集来源凭证、浏览器历史、关注来源、对应关注凭证和复核队列,不允许手动勾选;每项可单独跳过,并提供短时撤销。浮窗可折叠为只保留标题、完成进度和展开键;全部任务完成或跳过后自动消失,不再要求一次额外确认;-任务链接与「跳过」各自拥有独立悬停区;链接悬停时隐藏上下两条直线分隔,分隔线使用暗色主题下-仍可辨识的按钮边框色,右侧箭头使用次级文字色。固定 revision、SHA 与差异见+任务链接与「跳过」各自拥有独立悬停区;链接悬停时即时切换背景并隐藏上下两条内收直线分隔,+不做跨行淡变,分隔线使用暗色主题下仍可辨识的按钮边框色,右侧箭头使用次级文字色。固定 revision、SHA 与差异见[安装后首页教程取证](reference-snapshots/rareui-boardui-post-setup-tutorial.md)。纠正(2026-09-12):这一段此处一度记过「上游 primary 没有悬停态」,同日取到规则原文后作废。diff --git a/docs/reference-snapshots/rareui-boardui-post-setup-tutorial.md b/docs/reference-snapshots/rareui-boardui-post-setup-tutorial.mdindex 7ad9df5b9..ed1630079 100644--- a/docs/reference-snapshots/rareui-boardui-post-setup-tutorial.md+++ b/docs/reference-snapshots/rareui-boardui-post-setup-tutorial.md@@ -19,7 +19,7 @@- 任务不是可手动勾选的待办。首页读取馆藏、采集来源凭证、浏览器历史、关注来源、对应关注凭证和复核队列的实际状态,达到条件后自动打勾并移到清单末尾。- 下一步按钮始终指向第一项未完成任务;每项可跳过并短时撤销,全部完成或跳过后教程自动消失。- 教程挂在 `main` 之外的右下角固定浮窗,不参与首页正文排版;离开首页即隐藏。历史导入可先进入 `/taste?onboarding=1`,待用户回到首页时继续教程。-- 浮窗按内容增长并受视口高度限制,任务区单独滚动;可折叠为标题与完成进度,全部处理后自动消失。任务链接与「跳过」各有独立悬停区;链接悬停时上下直线分隔同时隐去,暗色主题仍保留可辨识的线条,右箭头保持次级文字色。+- 浮窗按内容增长并受视口高度限制,任务区单独滚动;可折叠为标题与完成进度,全部处理后自动消失。任务链接与「跳过」各有独立悬停区;链接悬停时背景即时切换、上下两条内收直线分隔同时隐去,不做跨行淡变;暗色主题仍保留可辨识的线条,右箭头保持次级文字色。## 明确差异diff --git a/tests/test_web_ui.py b/tests/test_web_ui.pyindex 0c9b57d74..514fa759a 100644--- a/tests/test_web_ui.py+++ b/tests/test_web_ui.py@@ -162,9 +162,11 @@ class WebUiSourceTests(unittest.TestCase):self.assertIn(".post-setup-notification", board)self.assertIn(".post-setup-task[data-state=checked]", board)self.assertIn(".post-setup-task+.post-setup-task::before{content:\"\";position:absolute;", board)- self.assertIn("background:var(--color-border-button-default);pointer-events:none", board)+ self.assertIn("inset:0 12px auto;height:1px", board)+ self.assertIn("background:var(--color-border-button-default);pointer-events:none}", board)self.assertIn(".post-setup-task:has(>a:hover)::before,.post-setup-task:has(>a:hover)+.post-setup-task::before{opacity:0}", board)self.assertIn(".post-setup-task>a:hover{background:var(--hover)}", board)+ self.assertIn("border-radius:8px;color:var(--ink);text-decoration:none}", board)self.assertNotIn(".post-setup-task:hover{", board)self.assertIn("position:fixed;right:12px;bottom:12px;z-index:100", board)self.assertIn("width:min(400px,calc(100vw - 24px))", board)diff --git a/web/board.css b/web/board.cssindex cc4b45a65..c5d4ad90e 100644--- a/web/board.css+++ b/web/board.css@@ -1598,9 +1598,9 @@ body .followmanage .board-pagination>.geist-button{height:32px;min-height:32px;p.post-setup-notification[data-collapsed=true]>.post-setup-task-list,.post-setup-notification[data-collapsed=true]>footer{display:none}.post-setup-task-list{display:grid;gap:0;min-height:0;margin:0;padding:4px;border-block:1px solid var(--color-border-button-default);overflow-y:auto;list-style:none}.post-setup-task{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}-.post-setup-task+.post-setup-task::before{content:"";position:absolute;inset:0 0 auto;height:1px;background:var(--color-border-button-default);pointer-events:none;transition:opacity .15s ease}+.post-setup-task+.post-setup-task::before{content:"";position:absolute;inset:0 12px auto;height:1px;background:var(--color-border-button-default);pointer-events:none}.post-setup-task:has(>a:hover)::before,.post-setup-task:has(>a:hover)+.post-setup-task::before{opacity:0}-.post-setup-task>a{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr) 16px;align-items:center;gap:12px;min-width:0;min-height:62px;padding:10px 8px 10px 12px;border-radius:8px;color:var(--ink);text-decoration:none;transition:background-color .15s ease,color .15s ease}+.post-setup-task>a{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr) 16px;align-items:center;gap:12px;min-width:0;min-height:62px;padding:10px 8px 10px 12px;border-radius:8px;color:var(--ink);text-decoration:none}.post-setup-task>a:hover{background:var(--hover)}.post-setup-task>a>svg{width:16px;height:16px;color:var(--color-text-secondary);fill:none;stroke:currentColor;stroke-width:2}.post-setup-task>a:hover>svg{color:var(--color-text-primary)}