-
-
Notifications
You must be signed in to change notification settings - Fork 543
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
'Fit To Window' Player button #1798
Conversation
hey! <3 great!
Previously, Player size bugs: #1602
|
reverting for troubleshooting for today ( will even do that when it seems the chance is less than 1% that a PR is any related to current issues, if those issue are big enough.)
|
opacity: 0.85, | ||
position: "right", | ||
onclick: function () { | ||
let previousSize = ImprovedTube.storage.player_size === "fit_to_window" ? "do_not_change" : ImprovedTube.storage.player_size; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't get any bug you described until I remembered the CSS trick we added while working on the Comments -> Sidebar
feature #1681. Basically "do_not_change" doesn't get applied by default, only when users change the Player Size at least one time. I should add a nullish operator here:
let previousSize = ImprovedTube.storage.player_size === "fit_to_window" ? "do_not_change" : (ImprovedTube.storage.player_size ?? "do_not_change")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, oh, right - and we / somebody can work on that (#1685)
New button to toggle 'Fit To Window' player size.
This is a 'Fit To Window' toggle (part of #1445).
Old Alternative – Fit To Window
Comments -> Sidebar
enabledstolentaken from lucide-icons IIRCThere's possibly bugs with other settings I haven't tested yet