From 3d8843109a4fac748aefe1a5db93863db48067e6 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 16 Nov 2025 17:44:11 -0600 Subject: [PATCH] Update chapters modal to always show both start and duration, add sticky header --- components/app/AudioPlayer.vue | 12 +----- components/modals/ChaptersModal.vue | 60 +++++++++++++++++++++-------- strings/en-us.json | 1 - 3 files changed, 46 insertions(+), 27 deletions(-) diff --git a/components/app/AudioPlayer.vue b/components/app/AudioPlayer.vue index 01b29256..ec129319 100644 --- a/components/app/AudioPlayer.vue +++ b/components/app/AudioPlayer.vue @@ -99,7 +99,7 @@ - + @@ -146,7 +146,6 @@ export default { useChapterTrack: false, useTotalTrack: true, scaleElapsedTimeBySpeed: true, - useChapterDuration: false, lockUi: false }, isLoading: false, @@ -207,11 +206,6 @@ export default { value: 'scale_elapsed_time', icon: this.playerSettings.scaleElapsedTimeBySpeed ? 'check_box' : 'check_box_outline_blank' }, - { - text: this.$strings.LabelUseChapterDuration, - value: 'use_chapter_duration', - icon: this.playerSettings.useChapterDuration ? 'check_box' : 'check_box_outline_blank' - }, { text: this.playerSettings.lockUi ? this.$strings.LabelUnlockPlayer : this.$strings.LabelLockPlayer, value: 'lock', @@ -738,9 +732,6 @@ export default { this.playerSettings.scaleElapsedTimeBySpeed = !this.playerSettings.scaleElapsedTimeBySpeed this.updateTimestamp() this.savePlayerSettings() - } else if (action === 'use_chapter_duration') { - this.playerSettings.useChapterDuration = !this.playerSettings.useChapterDuration - this.savePlayerSettings() } else if (action === 'lock') { this.playerSettings.lockUi = !this.playerSettings.lockUi this.savePlayerSettings() @@ -808,7 +799,6 @@ export default { this.playerSettings.useTotalTrack = !!savedPlayerSettings.useTotalTrack this.playerSettings.lockUi = !!savedPlayerSettings.lockUi this.playerSettings.scaleElapsedTimeBySpeed = !!savedPlayerSettings.scaleElapsedTimeBySpeed - this.playerSettings.useChapterDuration = !!savedPlayerSettings.useChapterDuration } }, savePlayerSettings() { diff --git a/components/modals/ChaptersModal.vue b/components/modals/ChaptersModal.vue index c2cf1c72..0cb4daba 100644 --- a/components/modals/ChaptersModal.vue +++ b/components/modals/ChaptersModal.vue @@ -1,5 +1,5 @@