From ded8efb85a734130942d070b42df612aef00c0df Mon Sep 17 00:00:00 2001 From: waterWang Date: Mon, 3 Aug 2026 02:21:52 +0800 Subject: [PATCH 1/2] fix: prevent toggle switches from shrinking when set to 'on' (Fixes #4216) The universal *[data-value][data-value="true"] selector in satus.css applied negative margins to ALL elements with data-value="true", including toggle switches (.satus-switch). When a toggle was turned on, the negative margins compressed the switch vertically, making the entire menu entry row appear narrower. Fix: add .satus-switch[data-value] rule to reset margins to 0, overriding the universal selector's negative margins. --- menu/satus.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/menu/satus.css b/menu/satus.css index afbb3eddf..3a44c6e4b 100644 --- a/menu/satus.css +++ b/menu/satus.css @@ -4,6 +4,12 @@ *[data-value][data-value="false"] {margin-bottom: 0; margin-top: 0; transition: margin 0.14s linear !important;} *[data-value][data-value="true"] {margin-bottom: -4.5px !important; margin-top: -3.5px; transition: margin 0.2s linear !important;} +/* Prevent toggle switches from being shrunk by the universal data-value rule */ +.satus-switch[data-value] { + margin-bottom: 0 !important; + margin-top: 0 !important; +} + .satus-button--general, .satus-button--appearance, .satus-button--player { margin-left: 9px !important; margin-right: -18px !important; From 6778e606962e01ad750f6f82e93f31517c8dd928 Mon Sep 17 00:00:00 2001 From: waterWang Date: Mon, 3 Aug 2026 10:50:27 +0800 Subject: [PATCH 2/2] fix: increase Key Scene tooltip z-index to prevent overlap with description text (#4138) The Key Scene button's tooltip (z-index: 1002) was appearing below the player controls and overlapping with the video description text. This fix: 1. Increases z-index from 1002 to 999999 to ensure the tooltip always renders above YouTube's description text 2. Adds white-space: nowrap to prevent the tooltip text from wrapping, ensuring clean single-line display --- js&css/extension/www.youtube.com/styles.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js&css/extension/www.youtube.com/styles.css b/js&css/extension/www.youtube.com/styles.css index 2a0164339..5de1d5eba 100644 --- a/js&css/extension/www.youtube.com/styles.css +++ b/js&css/extension/www.youtube.com/styles.css @@ -707,10 +707,11 @@ html[dark] .improvedtube-player-button svg path { padding: 8px; content: attr(data-tooltip); transform: translateX(-50%); + white-space: nowrap; color: var(--paper-tooltip-text-color, white); border-radius: 2px; background-color: var(--paper-tooltip-background, #616161); - z-index: 1002; + z-index: 999999; } /*------------------------------------------------------------------------------