Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mini player does not scale correctly #1008

Open
yioannides opened this issue Jan 5, 2025 · 1 comment
Open

Mini player does not scale correctly #1008

yioannides opened this issue Jan 5, 2025 · 1 comment

Comments

@yioannides
Copy link

Hello, thank you for your great extension.

Just wanted to report that the mini player does not scale correctly when scrolling down the page. It is zoomed in the upper left corner as seen in the screenshots below:

Screenshot From 2025-01-05 10-10-20
Screenshot From 2025-01-05 10-10-54

I followed the guidelines prior to reporting this bug. I'm on Firefox 133.0.3 (flatpak) on Fedora Linux 41.

Thank you!

@soulhotel
Copy link

soulhotel commented Feb 21, 2025

  • Scaling breaks when video is in default viewer / Not when it is in Theater Mode
  • Scaling breaks when the Window surpasses 1080p resolution

It can be adjusted through the CSS - for all resolutions while keeping a consistent size no matter if default view or theater view.

Code Snippet In Here
/*
Extensions height width are 225/400
I'm using 366/650 for visibility
*/


html[always-visible-player]:not(:has(ytd-watch-flexy[fullscreen])) #movie_player {
    top: unset !important;
    left: unset !important;
    bottom: 10px !important;
    right: 10px !important;
    width: 650px !important; /*400px*/
    height: 366px !important; /*225px*/
    z-index: 9998 !important;
}
/*
these are being overwritten inline by yt,
important tags fix it but they may need to be
applied and de-applied for when the mini player is triggered
*/


html[always-visible-player]:not(:has(ytd-watch-flexy[fullscreen])) .video-stream.html5-main-video {
    top: unset !important;
    left: unset !important;
    bottom: 10px !important;
    right: 10px !important;
    width: 650px !important; /*400px*/
    height: auto !important; /*225px*/
    position: fixed !important;
    z-index: 9999 !important;
}
/*
height and width should technically match #movie_player
important tags to applied only when the mini player is triggered
position `fixed` (inside of the movie player) instead of `absolute`
*/

html[always-visible-player]:not(:has(ytd-watch-flexy[fullscreen])) .ytp-chrome-bottom {
    width: 97% !important;
}
/*
progress bar container width (set inline) needs to be overwritten to fit mini-player size.
*/
2025-02-21.02-01-14.mp4

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

No branches or pull requests

2 participants