From 32b886a0c3cda88b56f815deef5ce58dd68b1154 Mon Sep 17 00:00:00 2001 From: advplyr Date: Thu, 16 Jan 2025 17:06:06 -0600 Subject: [PATCH] Update bookmark modal to scale with playback rate #3728 --- client/components/app/MediaPlayerContainer.vue | 2 +- client/components/modals/BookmarksModal.vue | 12 +++++++----- client/components/modals/bookmarks/BookmarkItem.vue | 5 +++-- client/pages/item/_id/index.vue | 2 +- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/client/components/app/MediaPlayerContainer.vue b/client/components/app/MediaPlayerContainer.vue index 989fc062..61b10ba8 100644 --- a/client/components/app/MediaPlayerContainer.vue +++ b/client/components/app/MediaPlayerContainer.vue @@ -55,7 +55,7 @@ @showPlayerQueueItems="showPlayerQueueItemsModal = true" /> - + diff --git a/client/components/modals/BookmarksModal.vue b/client/components/modals/BookmarksModal.vue index ad0d7343..5c43d024 100644 --- a/client/components/modals/BookmarksModal.vue +++ b/client/components/modals/BookmarksModal.vue @@ -5,22 +5,22 @@

{{ $strings.LabelYourBookmarks }}

-
+

{{ $strings.MessageNoBookmarks }}

-
+

- {{ this.$secondsToTimestamp(currentTime) }} + {{ this.$secondsToTimestamp(currentTime / playbackRate) }}

@@ -46,7 +46,9 @@ export default { type: Number, default: 0 }, - libraryItemId: String + libraryItemId: String, + playbackRate: Number, + hideCreate: Boolean }, data() { return { diff --git a/client/components/modals/bookmarks/BookmarkItem.vue b/client/components/modals/bookmarks/BookmarkItem.vue index c4035bc8..538d3115 100644 --- a/client/components/modals/bookmarks/BookmarkItem.vue +++ b/client/components/modals/bookmarks/BookmarkItem.vue @@ -2,7 +2,7 @@

- {{ this.$secondsToTimestamp(bookmark.time) }} + {{ this.$secondsToTimestamp(bookmark.time / playbackRate) }}

@@ -35,7 +35,8 @@ export default { type: Object, default: () => {} }, - highlight: Boolean + highlight: Boolean, + playbackRate: Number }, data() { return { diff --git a/client/pages/item/_id/index.vue b/client/pages/item/_id/index.vue index 139794e5..a0cadc1d 100644 --- a/client/pages/item/_id/index.vue +++ b/client/pages/item/_id/index.vue @@ -141,7 +141,7 @@
- +