fix: z-index regression, fullscreen top padding

This commit is contained in:
2026-03-28 17:25:34 -04:00
parent 6cf4ef3f93
commit 194acacab4
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -10,6 +10,11 @@
white-space: normal;
}
/* Use minimal z-index for non-YouTube sites to avoid overlapping modals */
.vsc-controller.vsc-non-youtube {
z-index: 1 !important;
}
.vsc-nosource {
display: none !important;
}
+3 -1
View File
@@ -279,7 +279,7 @@ function applyControllerLocationToElement(controller, location) {
document.msFullscreenElement
) {
if (normalizedLocation.startsWith("top-")) {
top = "50px";
top = "63px";
}
}
@@ -1333,6 +1333,8 @@ function defineVideoController() {
if (!this.video.src && !this.video.currentSrc)
wrapper.classList.add("vsc-nosource");
if (tc.settings.startHidden) wrapper.classList.add("vsc-hidden");
// Use lower z-index for non-YouTube sites to avoid overlapping modals
if (!isOnYouTube()) wrapper.classList.add("vsc-non-youtube");
var shadow = wrapper.attachShadow({ mode: "open" });
var shadowStylesheet = doc.createElement("link");
shadowStylesheet.rel = "stylesheet";