Skip to content

Commit

Permalink
fix: slider truncation (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolson authored May 6, 2024
1 parent f9588c8 commit 227640b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/remove-video-enhancer-container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ function RemoveVideoEnhancerContainer({
element
)
}

const sidebar = getElementsByXpath(XPATH.YT_SIDEBAR_CONTAINER) as HTMLElement[]
if (sidebar.length > 0) {
sidebar[0].style.overflow = 'visible'
}
}, [])

return (
Expand Down
1 change: 1 addition & 0 deletions src/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const XPATH = {
YT_PLAYLIST_VIDEO_RENDERERS: '//ytd-playlist-video-renderer',
YT_PLAYLIST_VIDEO_MENU: '//ytd-playlist-video-renderer//div[@id="menu"]',
YT_NUMBER_OF_VIDEOS_IN_PLAYLIST: '//ytd-playlist-byline-renderer//div/yt-formatted-string/span[1]',
YT_SIDEBAR_CONTAINER: '//div[@class="immersive-header-content style-scope ytd-playlist-header-renderer"]',
}

export default {
Expand Down

0 comments on commit 227640b

Please sign in to comment.