From 0d31d20f0f335cc7fde10ee938c2cae5a8f7ecc9 Mon Sep 17 00:00:00 2001 From: Greg Lorenzen Date: Tue, 24 Sep 2024 23:00:19 +0000 Subject: [PATCH 1/3] Center align player chapter title --- client/components/player/PlayerUi.vue | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/client/components/player/PlayerUi.vue b/client/components/player/PlayerUi.vue index 968b0ea1..c3bb4cda 100644 --- a/client/components/player/PlayerUi.vue +++ b/client/components/player/PlayerUi.vue @@ -48,15 +48,19 @@ -
-

00:00:00

- -
-

- {{ currentChapterName }}  ({{ $getString('LabelPlayerChapterNumberMarker', [currentChapterIndex + 1, chapters.length]) }}) -

-
-

{{ timeRemainingPretty }}

+
+
+

00:00:00

+ +
+
+

+ {{ currentChapterName }}  ({{ $getString('LabelPlayerChapterNumberMarker', [currentChapterIndex + 1, chapters.length]) }}) +

+
+
+

{{ timeRemainingPretty }}

+
From b2d41f05839c0b12cedefc305239e760c217ab14 Mon Sep 17 00:00:00 2001 From: Greg Lorenzen Date: Tue, 24 Sep 2024 23:17:26 +0000 Subject: [PATCH 2/3] Move playback speed control next to player volume control --- .../player/PlayerPlaybackControls.vue | 83 +++++++------------ client/components/player/PlayerUi.vue | 8 ++ 2 files changed, 40 insertions(+), 51 deletions(-) diff --git a/client/components/player/PlayerPlaybackControls.vue b/client/components/player/PlayerPlaybackControls.vue index 39ce4f3c..1b96a24b 100644 --- a/client/components/player/PlayerPlaybackControls.vue +++ b/client/components/player/PlayerPlaybackControls.vue @@ -1,38 +1,37 @@ @@ -41,7 +40,6 @@ export default { props: { loading: Boolean, seekLoading: Boolean, - playbackRate: Number, paused: Boolean, hasNextChapter: Boolean, hasNextItemInQueue: Boolean @@ -50,14 +48,6 @@ export default { return {} }, computed: { - playbackRateInput: { - get() { - return this.playbackRate - }, - set(val) { - this.$emit('update:playbackRate', val) - } - }, jumpForwardText() { return this.getJumpText('jumpForwardAmount', this.$strings.ButtonJumpForward) }, @@ -89,15 +79,6 @@ export default { jumpForward() { this.$emit('jumpForward') }, - playbackRateUpdated(playbackRate) { - this.$emit('setPlaybackRate', playbackRate) - }, - playbackRateChanged(playbackRate) { - this.$emit('setPlaybackRate', playbackRate) - this.$store.dispatch('user/updateUserSettings', { playbackRate }).catch((err) => { - console.error('Failed to update settings', err) - }) - }, getJumpText(setting, prefix) { const amount = this.$store.getters['user/getUserSetting'](setting) if (!amount) return prefix diff --git a/client/components/player/PlayerUi.vue b/client/components/player/PlayerUi.vue index c3bb4cda..e341da4a 100644 --- a/client/components/player/PlayerUi.vue +++ b/client/components/player/PlayerUi.vue @@ -4,6 +4,8 @@
+ + @@ -228,6 +230,12 @@ export default { this.playbackRate = Number((this.playbackRate - 0.1).toFixed(1)) this.setPlaybackRate(this.playbackRate) }, + playbackRateChanged(playbackRate) { + this.setPlaybackRate(playbackRate) + this.$store.dispatch('user/updateUserSettings', { playbackRate }).catch((err) => { + console.error('Failed to update settings', err) + }) + }, setPlaybackRate(playbackRate) { this.$emit('setPlaybackRate', playbackRate) }, From 0bc58c254f5ae1df66811b66b682eceb6489f236 Mon Sep 17 00:00:00 2001 From: advplyr Date: Wed, 25 Sep 2024 16:49:24 -0500 Subject: [PATCH 3/3] Update playback speed to no longer use font-mono, adjust position of popup --- .../components/controls/PlaybackSpeedControl.vue | 16 ++++++++-------- client/components/player/PlayerUi.vue | 4 +--- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/client/components/controls/PlaybackSpeedControl.vue b/client/components/controls/PlaybackSpeedControl.vue index c4cc2901..9e9f0d54 100644 --- a/client/components/controls/PlaybackSpeedControl.vue +++ b/client/components/controls/PlaybackSpeedControl.vue @@ -1,9 +1,9 @@