Peach: Local-first video metadata scraper and media manager.
fix(web): 窄屏展开右侧控件那条规则补足权重
longmeidao940ee88681b3
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.pyindex 8d32950fe..59e86086c 100644--- a/tests/test_web_ui.py+++ b/tests/test_web_ui.py@@ -1693,8 +1693,10 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains(".video-js.vjs-peach-xsmall .vjs-peach-right-controls>.vjs-control:not(.vjs-peach-settings):not(.vjs-peach-expand){display:none}")self.assertPageContains(".video-js.vjs-peach-xsmall .vjs-peach-expand{display:block}")+ # 展开那条要和折叠那条带同样两个 :not():少两个类就权重不够,点开没反应。self.assertPageContains(- ".video-js.vjs-peach-xsmall.vjs-peach-right-expanded .vjs-peach-right-controls>.vjs-control{display:block}")+ ".video-js.vjs-peach-xsmall.vjs-peach-right-expanded .vjs-peach-right-controls>.vjs-control"+ ":not(.vjs-peach-settings):not(.vjs-peach-expand){display:block}")# 展开后时间显示让出宽度:Peach 的控制条比 YouTube 窄,占着位就又超框。self.assertPageContains(".video-js.vjs-peach-xsmall.vjs-peach-right-expanded .vjs-peach-time{display:none}")self.assertPageContains(".video-js.vjs-peach-xsmall .vjs-peach-right-controls>.vjs-control{flex:0 0 36px")diff --git a/web/app.css b/web/app.cssindex d0821244c..5744d63ca 100644--- a/web/app.css+++ b/web/app.css@@ -1430,7 +1430,7 @@ body.index-open #tiers,body.index-open #tagbar{display:none}.video-js.vjs-peach-xsmall .vjs-peach-right-controls>.vjs-control>button>svg{width:18px;height:18px}.video-js.vjs-peach-xsmall .vjs-peach-right-controls>.vjs-control:not(.vjs-peach-settings):not(.vjs-peach-expand){display:none}.video-js.vjs-peach-xsmall .vjs-peach-expand{display:block}-.video-js.vjs-peach-xsmall.vjs-peach-right-expanded .vjs-peach-right-controls>.vjs-control{display:block}+.video-js.vjs-peach-xsmall.vjs-peach-right-expanded .vjs-peach-right-controls>.vjs-control:not(.vjs-peach-settings):not(.vjs-peach-expand){display:block}.video-js.vjs-peach-xsmall.vjs-peach-right-expanded .vjs-peach-time{display:none}.vjs-peach-expand>button>svg{transition:transform .3s cubic-bezier(.05,0,0,1);transform:rotate(180deg)}.video-js.vjs-peach-right-expanded .vjs-peach-expand>button>svg{transform:rotate(0)}