diff --git a/public/contentStyle.css b/public/contentStyle.css index 0b84f173..22073d1e 100644 --- a/public/contentStyle.css +++ b/public/contentStyle.css @@ -18,9 +18,11 @@ body.no-scroll .yte-button-tooltip { padding: 8px 9px !important; transform: translate(-50%, -75%) !important; } + .maximized_chapter { width: 100% !important; } + .maximized_video { width: 100vw !important; height: 100vh !important; @@ -29,6 +31,7 @@ body.no-scroll .yte-button-tooltip { object-fit: contain !important; background: black !important; } + .maximized_video_container { position: fixed !important; top: 0 !important; @@ -37,10 +40,12 @@ body.no-scroll .yte-button-tooltip { height: 100vh !important; z-index: 2020 !important; } + .maximized_controls { width: 97vw !important; right: 12px !important; } + .yte-maximize-player-button { opacity: 0.9; display: inline-block; @@ -51,3 +56,11 @@ body.no-scroll .yte-button-tooltip { transition: opacity 0.1s cubic-bezier(0.4, 0, 1, 1); overflow: hidden; } + +.ytp-chapter-container { + flex: 1 !important; +} + +.ytp-right-controls { + display: flex !important; +} \ No newline at end of file diff --git a/src/features/buttonPlacement/utils.ts b/src/features/buttonPlacement/utils.ts index 67fc274b..4d312be9 100644 --- a/src/features/buttonPlacement/utils.ts +++ b/src/features/buttonPlacement/utils.ts @@ -35,8 +35,6 @@ export function makeFeatureButton(".ytp-left-controls"); if (!leftControls) return; - leftControls.append(button); + const timeDisplay = leftControls.querySelector(".ytp-time-display"); + if (!timeDisplay) return; + timeDisplay.insertAdjacentElement("beforebegin", button); break; } case "player_controls_right": {