mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14:41:20 -08:00
add art-subtitle-line
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user