-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Enter confirms subtitle track selection #445
base: main
Are you sure you want to change the base?
Conversation
- It is no longer really useful since there is now a setting that controls offset for the webapp's video player
- Allow subtitles to take up more width on the screen. Especially helps with mobile UX.
- E.g. in the case of Amazon Prime when scrolling down the page and then opening a video.
- Support lazy-fetching of subtitle track URLs that are not provided on the initial manifest fetch
Hi @pooky-programs , sorry for taking a long time to look at this. I thought that your changes were still in-progress since the PR is in draft. |
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 for your contribution. As mentioned in the comments, I think this change will really be effective when it reduces the clicks necessary for users to select subtitles.
@@ -186,6 +204,8 @@ export default function VideoDataSyncDialog({ | |||
return newSelectedSubtitles; | |||
}) | |||
} | |||
onFocus={() => setIsDropdownActive(true)} | |||
onBlur={() => setIsDropdownActive(false)} |
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.
As you pointed out, with this implementation it still takes another click for the dialog to respond to the Enter
key. I think for this change to be really useful the dialog should close on Enter
as long as none of the drop-downs are open. This would reduce the total clicks required to select subtitles.
@killergerbah no problem, and yeah this is still WIP! I just haven't had the time to sit down and work on it again, sorry for not telling you sooner. I'll be attempting to fix it after July ends. |
* Readme: update dictionaries and regex sections * Note about one click mining * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md
- So that popup dictionary UI is more likely to appear on top
* add default policy if one doesn't exist * revert speculative fix commit * add comment linking chrome tests
…e subtitle) (killergerbah#474) * VideoPlayer.tsx: Don't newline subtitles. (Let yomitan pick up the full sub) * Videoplayer.tsx: Also wrap text with <p> when dom caching is disabled * video-player.css: Fix excessive gap on bottom of subtitles (visible with pre-cache subtitle dom + multiple sub track) * undo inline: messed with splits on subs, whiteSpace made a huge box under the sub box (material ui css stuff) * videoplayer.tsx: lineheight: normal -> inherit, better spacing look * prettier
Implementation of #378
VideoDataSyncDialog now listens for enter key press when subtitle drop downs aren't in focus.
Can be significantly improved if I can figure out how to shift focus from the side panel to the dialog when it opens on click.
Currently it only submits on enter when the dialog is focused after a click, which I understand is not ideal for what the original issue intended.