-
-
Notifications
You must be signed in to change notification settings - Fork 561
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
feat(player.css): Fixed max-height constraint (fixes #1710) #1712
Conversation
Did you test this working with header set to hidden or hidden on video page? It looks like it won't work in that case. It also might break non-theater mode |
I have fixed that navbar issue in the last commit. |
Maybe I misunderstood this Full Height sizing option. What should it do exactly @PoorChameleon? |
I have tested my solution against all navbar display option from the extension. It works fine when combined with theater mode (both forced from extension or not) |
It does mostly work now. I can still find one use case where it breaks which is enabling forced theater mode and then manually pressing 't' to disable it in the current video the user is on. You may be able to get away with just using |
@PoorChameleon alright, here it is |
@ImprovedTube this is what we had planned to do. The code is the same. What I don't understand is the html[data-page-type=video]:not([it-header-position]) ytd-app,
html[data-page-type=video][it-header-position=normal] ytd-app,
html[data-page-type=video][it-header-position=static] ytd-app {
--it-header-size: 56px;
}
html[data-page-type=video]:not([it-header-position]) ytd-watch-flexy:not([theater]),
html[data-page-type=video][it-header-position=normal] ytd-watch-flexy:not([theater]),
html[data-page-type=video][it-header-position=static] ytd-watch-flexy:not([theater]) {
--it-header-size: 104px;
}
html[data-page-type=video]:not([it-header-position]) div#page,
html[data-page-type=video][it-header-position=normal] div#page,
html[data-page-type=video][it-header-position=static] div#page {
--it-header-size: 50px;
}
html[data-page-type=video]:not([it-header-position]) div#page:not(.watch-wide),
html[data-page-type=video][it-header-position=normal] div#page:not(.watch-wide),
html[data-page-type=video][it-header-position=static] div#page:not(.watch-wide) {
--it-header-size: 70px;
}
/* other quadruplets for hidden, full-height, fit-to-window, hover... */ When should we get the other values over the first base one? I was trying to debug why the player it's never reaching the full height of the page. The header never changes its height in fullscreen, theater or in wide-screen, yet the greatest value takes precedence. Perhaps some obsolete code? Also, should the full-height remove the padding-top? With margin (actual)Without marginWithout margin (hidden header)Without margin (hidden header & fit-to-window) |
|
Maybe i don't correctly understood what full-height mode is, would you mind to enlighten me a bit? |
@HanzCEO we're referring to the same thing. It's "full-window" in the CSS and "full-height" in the tooltip |
I mean, the expected behavior from this mode. I'm not confused with its naming convention. |
It's to expand player to fill the viewport height (minus the header size and padding). Currently its not reaching the bottom part because there's a strange overlapping of variables. |
🤩 Pretty old at least (Didnt write it. Always wondered why Github wouldn't show the the original author and date of each line.) Looking foward to the/your next PR 🤫😁
agree.
This used to not increase player-height beyond the video height. (title stays visible. description & comments too on vertical screens) . Not sure why no longer. Same issure with the first option "Max width" (Does this ones correctly stretch the player controls bar though? For me always except when setting itt) |
It's called |
feat(player.css): Fixed max-height constraint (fixes #1710)
Added overwrite to
max-height
property at#player-wide-container
for 'Full Height' sizing.