add art-subtitle-line

This commit is contained in:
Harvey Zack committed 2023-09-01 21:27:59 +08:00
1 parent 95ba1810b6
commit 59794f32c6
5 files changed
+6 -6

No files matched your search

@@ -24,8 +24,6 @@
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
+1 -1
View File
@@ -64,7 +64,7 @@ export default class Subtitle extends Component {
if (this.art.option.subtitle.escape) {
$subtitle.innerHTML = this.activeCue.text
.split(/\r?\n/)
.map((item) => `<p>${escape(item)}</p>`)
.map((item) => `<div class="art-subtitle-line">${escape(item)}</div>`)
.join('');
} else {
$subtitle.innerHTML = this.activeCue.text;