player: display newlines properly

This commit is contained in:
FireMasterK 2021-01-13 21:25:05 +05:30
parent 1ec0bc1017
commit feaa888611
No known key found for this signature in database
GPG key ID: 8DFF5DD33E93DB58

View file

@ -26,7 +26,11 @@
<p>
Uploaded on <b>{{ video.uploadDate }}</b>
</p>
<p class="uk-light" v-html="video.description"></p>
<p
class="uk-light"
v-if="video.description"
v-html="video.description.replaceAll('\n', '<br>')"
></p>
<a v-if="sponsors && sponsors.segments"
>Sponsors Segments: {{ sponsors.segments.length }}</a
>