fix: video not fit

This commit is contained in:
shinya
2025-06-27 12:30:35 +08:00
parent f158d21b2c
commit 227ba8d6ff
2 changed files with 7 additions and 0 deletions

View File

@@ -146,3 +146,9 @@ html.dark::view-transition-new(root) {
html:not(.dark)::view-transition-new(root) {
animation-name: slide-from-bottom;
}
/* 强制播放器内部的 video 元素高度为 100%,并保持内容完整显示 */
div[data-media-provider] video {
height: 100%;
object-fit: contain;
}

View File

@@ -1453,6 +1453,7 @@ function PlayPageClient() {
googleCastButton: null,
pipButton: null,
settingsMenu: null,
captionButton: null,
muteButton: null, // 隐藏静音按钮
volumeSlider: null, // 隐藏音量条
airPlayButton: null, // 隐藏默认 AirPlay 按钮