fix(style): fix duplicated scrollbar #3483
No reviewers
Labels
No labels
awaiting-reply
breaking changes
bug
cannot-reproduce
dependencies
documentation
duplicate
electron-issue
enhancement
fix-available
good first issue
help wanted
invalid
javascript
need more information
need rebase
official-youtube-music-issue
plugin request
question
release
security
stale
Status: blocked
typo
wontfix
ytmd-issue
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: YTMD/youtube-music#3483
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/duplicated-scrollbar"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #3039
This PR just hides the body's overflow (catch-all solution to never show the double scrollbars)
The bug only seems to happen when:
save to playlist
,add to liked songs
, etc)I think it has something to do with the top margin added by the in-app menu
(plus the 1px added by the notification container)
Alternative solution. This targets the notification container specifically.
Or even
Holy shit, we should probably replace their notification system entirely.
I'd prefer
overflow-y
since this is for the Y axis, but if someone gets a horizontal scrollbar then ngl that's their problem 🤣I'm worried that this patch might introduce unintended side effects.
yeah, fair
youtube seems to be setting
body.style = "overflow: hidden/visible;"
through javascript to dinamically (un)hide the scrollbars when the user goes from the player to home and vice-versa.Also, I just noticed this could conflict with the
unobtrusive player
plugin too:40429034b6/src/plugins/unobtrusive-player/style.css (L1-L3)
Since the problem is mainly caused by in-app-menu's
margin-top
, I decided to just fix it by usingpadding-top
instead.This seems to fix the issue.