Fix e-reader settings modal on landscape

This commit is contained in:
advplyr
2025-11-19 17:01:06 -06:00
parent 70a9cab6f2
commit e63358f776
3 changed files with 9 additions and 5 deletions
+6 -2
View File
@@ -581,8 +581,12 @@ export default {
}
const ptWidth = Math.round(percentDone * this.trackWidth)
this.$refs.playedTrack.style.width = ptWidth + 'px'
this.$refs.bufferedTrack.style.width = Math.round(bufferedPercent * this.trackWidth) + 'px'
if (this.$refs.playedTrack) {
this.$refs.playedTrack.style.width = ptWidth + 'px'
}
if (this.$refs.bufferedTrack) {
this.$refs.bufferedTrack.style.width = Math.round(bufferedPercent * this.trackWidth) + 'px'
}
if (this.$refs.trackCursor) {
this.$refs.trackCursor.style.left = ptWidth - 14 + 'px'