Peach: Local-first video metadata scraper and media manager.
fix: keep metered stream gate full width
Peach local maintenance6bcf6c6214de
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.pyindex 3fbca1114..07cb6de69 100644--- a/tests/test_web_ui.py+++ b/tests/test_web_ui.py@@ -294,6 +294,15 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains("player.src(directDetailSource(it))")self.assertPageContains("detailPlayer.dispose()")+ def test_metered_stream_gate_occupies_the_player_until_clicked(self):+ # `.vwrap video{display:block}` 不能把 hidden 播放器提前画出来;否则入口和播放器+ # 会在同一个 flex 容器里各占一半。点击入口后再取消 hidden、移除入口并自动播放。+ self.assertPageContains(".vwrap>video[hidden]{display:none}")+ self.assertPageContains(".gate{aspect-ratio:16/9;width:100%")+ self.assertPageContains(+ "else if(g)g.onclick=()=>{vv.hidden=false;g.remove();mountDetailPlayer(it,vv,true)"+ )+def test_detail_uses_pinned_videojs_and_authoritative_duration(self):self.assertPageContains('/vendor/videojs/8.23.9/video.min.js')self.assertPageContains('/vendor/videojs/8.23.9/video-js.min.css')diff --git a/web/app.css b/web/app.cssindex 97a3af18c..8d919f131 100644--- a/web/app.css+++ b/web/app.css@@ -578,6 +578,9 @@ body.index-open #tiers,body.index-open #tagbar{display:none}mask-image:radial-gradient(ellipse at center,#000 28%,rgba(0,0,0,.72) 55%,transparent 86%);-webkit-mask-image:radial-gradient(ellipse at center,#000 28%,rgba(0,0,0,.72) 55%,transparent 86%)}.vwrap>video,.vwrap>.video-js{position:relative;z-index:1}.vwrap video{width:100%;max-height:76vh;display:block}+/* 计费来源点击前只显示拉流入口。显式 display:block 会覆盖浏览器的 hidden 默认样式,+ 让尚未启动的播放器和入口各占一半,所以这里必须让隐藏视频完全退出布局。 */+.vwrap>video[hidden]{display:none}.vwrap>.video-js{width:100%;height:auto;max-height:76vh;aspect-ratio:16/9;background:#000}.vwrap .video-js .vjs-tech{object-fit:contain}.vwrap .video-js .vjs-control-bar{height:3.4em;background:linear-gradient(transparent,rgba(0,0,0,.82))}