Fullscreen highlights drawer: keep scoreboard visible, don't hide feed; scrollable gear menu; remove slowmo picker + scrim tint
- Scoreboard scale observes #videoContainer (the .ytp inner box) instead of
#ytpWrap so the overlay tracks the squeezed container when the fullscreen
highlights drawer opens. Score bar + live-scoring feed shift left with the
video and stay fully visible next to the drawer.
- msb-small (auto-hide identity + feed under 700 px) now skipped while
document.fullscreenElement is set — the drawer squeeze on smaller viewports
was dropping the container under 700 and hiding the live feed.
- Player settings panel (#ytpSettingsPanel) is now vertical-scroll capable:
max-height: calc(100vh - 120px) + overflow-y: auto + slim on-brand
scrollbar + overscroll-behavior: contain. Top items (Mini player, Playback
speed) stay reachable when the injected Scoreboard toggles push the
list past the visible area.
- Removed the slow-mo (.slowmo-picker) 1/4x/1/2x/3/4x selector from the
match highlights tab bar.
- Disabled the scoreboard scrim (.msb-scrim { display: none }). The two
linear-gradients were tinting the top and bottom of the video for text
legibility, but every scoreboard text element already carries its own
text-shadow — the tint was showing as permanent shadows over portrait
and landscape videos alike.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This commit is contained in:
1 parent
5d038488fb
commit
b05ff14b3b
4 files changed
+34
-26
No files matched your search
@@ -534,10 +534,23 @@
|
||||
background: rgba(28,28,28,.95);
|
||||
border-radius: 12px;
|
||||
min-width: 200px;
|
||||
overflow: hidden;
|
||||
/* Cap height so the panel stays inside the player and scrolls when the
|
||||
item list (mini/speed/autoplay/shuffle + injected Scoreboard toggles)
|
||||
grows taller than the available space above the control bar. */
|
||||
max-height: calc(100vh - 120px);
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
overscroll-behavior: contain;
|
||||
box-shadow: 0 4px 24px rgba(0,0,0,.6);
|
||||
z-index: 100;
|
||||
}
|
||||
/* Slim, on-brand scrollbar so it doesn't clash with the dark panel. */
|
||||
.ytp-settings-panel::-webkit-scrollbar { width: 6px; }
|
||||
.ytp-settings-panel::-webkit-scrollbar-thumb {
|
||||
background: rgba(255,255,255,.22); border-radius: 3px;
|
||||
}
|
||||
.ytp-settings-panel::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.35); }
|
||||
.ytp-settings-panel::-webkit-scrollbar-track { background: transparent; }
|
||||
.ytp-settings-panel.open { display: block; }
|
||||
.ytp-settings-item {
|
||||
display: flex;
|
||||
|
||||
Reference in new issue
Block a user