animebook / animebook.github.io

In-browser video player for learning Japanese with subtitles
https://animebook.github.io
MIT License
273 stars 29 forks source link

Added word-break for .caption #44

Closed SpasiboKojima closed 2 years ago

SpasiboKojima commented 2 years ago

Huge subtitles overflow .captions container. It becomes shifted after this part of subtitles gets loaded and continues for the rest of the video. Please check the attached subtitle file (had to zip it since Github doesn't accept .srt) after 6:40. word-break doesn't seem to break anything else, since we are already in a no-space language. Setting overflow-x would be another option to fix the issue. Noticed for the second time already, and I can't say I've seen a lot of titles. image image [Sakurato] Shiroi Suna no Aquatope [24][HEVC-10bit 1080p AAC][CHS&CHT&JPN].zip

soamsy commented 2 years ago

I dig it. Thanks.