Skip to content

Commit

Permalink
Merge pull request #55 from Stremio/fix/subtitles-line-breaks
Browse files Browse the repository at this point in the history
fix: subtitles line breaks
  • Loading branch information
tymmesyde authored Jan 19, 2024
2 parents c368992 + 3216437 commit a2d79db
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 a2d79db

Please sign in to comment.