Skip to content

fix: increase Key Scene button tooltip z-index to prevent overlap with video description (#4138) - #4256

Open
waterWang wants to merge 2 commits into
code-charity:masterfrom
waterWang:fix/key-scene-tooltip-zindex-4138
Open

fix: increase Key Scene button tooltip z-index to prevent overlap with video description (#4138)#4256
waterWang wants to merge 2 commits into
code-charity:masterfrom
waterWang:fix/key-scene-tooltip-zindex-4138

Conversation

@waterWang

Copy link
Copy Markdown

Summary

Fixes #4138 — The Key Scene button's tooltip text was overlapping with the video description text below the player controls.

Changes

File: js&css/extension/www.youtube.com/styles.css

  1. Increased z-index: 1002 → 999999 — ensures the tooltip renders above YouTube's description text, which had a higher stacking context
  2. Added white-space: nowrap — prevents the tooltip text from wrapping, ensuring a clean single-line display

Before

Hovering over the Key Scene button showed the tooltip text overlapping with the video description text below the player controls.

After

The tooltip appears cleanly on top of the description text without overlapping.

Testing

  • Verified the CSS change is scoped to .improvedtube-player-button:hover::after only
  • No other functionality is affected

…ode-charity#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.
…iption text (code-charity#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐞'Key Scene' button hover text is overlapped with the description text when deactivated.

1 participant