fix: responsive video.js audio waveform

This commit is contained in:
Bobby 2022-05-27 11:32:35 +07:00
parent b3535969dd
commit 3ec7e6c76c
No known key found for this signature in database
GPG Key ID: 941839794CBF5A09
2 changed files with 10 additions and 2 deletions

View File

@ -9,5 +9,12 @@
}
.video-js {
margin: 0 auto
margin: 0 auto;
&.vjs-wavesurfer.vjs-fluid {
/* stylelint-disable-next-line selector-type-no-unknown */
wave.vjs-wavedisplay {
height: calc(100% - 30px) !important
}
}
}

View File

@ -114,7 +114,8 @@ page.reloadVideo = () => {
if (isaudio) {
options.plugins = {
wavesurfer: {
backend: 'MediaElement'
backend: 'MediaElement',
responsive: true
}
}
}