From e63358f776ef11b521f53b2d39b9db45f016242e Mon Sep 17 00:00:00 2001 From: advplyr Date: Wed, 19 Nov 2025 17:01:06 -0600 Subject: [PATCH] Fix e-reader settings modal on landscape --- components/app/AudioPlayer.vue | 8 ++++++-- components/modals/FullscreenModal.vue | 4 ++-- components/readers/Reader.vue | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/components/app/AudioPlayer.vue b/components/app/AudioPlayer.vue index ec129319..9c4c8a85 100644 --- a/components/app/AudioPlayer.vue +++ b/components/app/AudioPlayer.vue @@ -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' diff --git a/components/modals/FullscreenModal.vue b/components/modals/FullscreenModal.vue index e02378e3..4eacc41f 100644 --- a/components/modals/FullscreenModal.vue +++ b/components/modals/FullscreenModal.vue @@ -1,5 +1,5 @@