Peach: Local-first video metadata scraper and media manager.
fix(player): make stage close control round
longmeidao875dde53cbbf
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.pyindex 519a4c8b3..bfb029131 100644--- a/tests/test_web_ui.py+++ b/tests/test_web_ui.py@@ -97,12 +97,15 @@ class WebUiSourceTests(unittest.TestCase):css = (Path(__file__).resolve().parents[1] / "web" / "app.css").read_text(encoding="utf-8")for selector in (".playlistdialoghead button{", ".photoclose{",- ".mixqueuehead button{", ".closestage{",- ".settingshead button{"):- start = css.rindex(selector) if selector == ".closestage{" else css.index(selector)+ ".mixqueuehead button{", ".settingshead button{"):+ start = css.index(selector)rule = css[start:css.index("}", start)]self.assertIn("var(--control-radius)", rule,f"{selector} 是关闭操作,不是圆形标签")+ stage_close = css[css.rindex(".closestage{"):]+ stage_close = stage_close[:stage_close.index("}")]+ self.assertIn("width:40px;height:40px", stage_close)+ self.assertIn("border-radius:50%", stage_close)self.assertIn(".settingshead button:hover{background:var(--hover);color:var(--ink)}",css)diff --git a/web/app.css b/web/app.cssindex c4d88fed0..9d7c69d93 100644--- a/web/app.css+++ b/web/app.css@@ -1052,7 +1052,7 @@ body.index-open #tiers,body.index-open #tagbar{display:none}display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;cursor:pointer}.closestage{position:absolute;top:11px;right:11px;z-index:9;width:40px;height:40px;background:color-mix(in srgb,#000 68%,transparent);color:#F0E9DE;- border:1px solid rgba(255,255,255,.24);border-radius:var(--control-radius);padding:0;cursor:pointer;+ border:1px solid rgba(255,255,255,.24);border-radius:50%;padding:0;cursor:pointer;display:grid;place-items:center}.closestage:hover{background:var(--drop);border-color:var(--drop)}.closestage svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2}