Skip to content

Commit

Permalink
fix: subtitles line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
tymmesyde committed Jan 19, 2024
1 parent c368992 commit 3216437
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/withHTMLSubtitles/withHTMLSubtitles.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function withHTMLSubtitles(Video) {
subtitlesRenderer.render(cuesByTime, videoState.time + delay).forEach(function(cueNode) {
cueNode.style.display = 'inline-block';
cueNode.style.padding = '0.2em';
cueNode.style.whiteSpace = 'pre-wrap';
cueNode.style.fontSize = Math.floor(size / 25) + 'vmin';
cueNode.style.color = textColor;
cueNode.style.backgroundColor = backgroundColor;
Expand Down

0 comments on commit 3216437

Please sign in to comment.