mirror of
https://github.com/SoPat712/videospeed.git
synced 2026-04-24 21:42:53 -04:00
fix: z-index regression, fullscreen top padding
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user