Skip to content

Commit

Permalink
Related video tooltips clipping fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WesselKroos committed Feb 22, 2024
1 parent 7a6e8fd commit 9ee7c86
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/styles/content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2978,6 +2978,12 @@ html[data-ambientlight-enabled="true"] {
ytd-comment-thread-renderer {
content-visibility: auto;
contain-intrinsic-size: auto 100px;

// absolute positioned emojis dropdown
#emojis.ytd-commentbox {
position: relative;
max-width: 100%;
}
}
ytd-playlist-panel-renderer #top-level-buttons-computed {
z-index: 1002; // Prevents the "loop playlist" button tooltip from being hidden behind the first playlist item
Expand All @@ -2997,8 +3003,9 @@ html[data-ambientlight-enabled="true"] {
content-visibility: auto;
contain-intrinsic-size: auto 94px;

tp-yt-paper-tooltip.ytd-channel-name #tooltip {
margin-bottom: -8px; // Prevents the channel name tooltip from going outside the related video bounds
// Related video - Channel name & badges tooltips
tp-yt-paper-tooltip {
top: -8px !important;
}
}
}
Expand Down

0 comments on commit 9ee7c86

Please sign in to comment.