diff --git a/client/components/app/BookShelfCategorized.vue b/client/components/app/BookShelfCategorized.vue index 3322677f..8b306ada 100644 --- a/client/components/app/BookShelfCategorized.vue +++ b/client/components/app/BookShelfCategorized.vue @@ -33,7 +33,7 @@
@@ -82,13 +82,10 @@ export default { return coverSize }, coverAspectRatio() { - return this.$store.getters['getServerSetting']('coverAspectRatio') + return this.$store.getters['libraries/getBookCoverAspectRatio'] }, isCoverSquareAspectRatio() { - return this.coverAspectRatio === this.$constants.BookCoverAspectRatio.SQUARE - }, - bookCoverAspectRatio() { - return this.isCoverSquareAspectRatio ? 1 : 1.6 + return this.coverAspectRatio == 1 }, sizeMultiplier() { var baseSize = this.isCoverSquareAspectRatio ? 192 : 120 diff --git a/client/components/app/LazyBookshelf.vue b/client/components/app/LazyBookshelf.vue index 9962cb55..b4597842 100644 --- a/client/components/app/LazyBookshelf.vue +++ b/client/components/app/LazyBookshelf.vue @@ -110,7 +110,7 @@ export default { return this.$store.getters['user/getUserSetting']('collapseSeries') }, coverAspectRatio() { - return this.$store.getters['getServerSetting']('coverAspectRatio') + return this.$store.getters['libraries/getBookCoverAspectRatio'] }, bookshelfView() { return this.$store.getters['getServerSetting']('bookshelfView') @@ -119,15 +119,12 @@ export default { return this.$store.getters['getServerSetting']('sortingIgnorePrefix') }, isCoverSquareAspectRatio() { - return this.coverAspectRatio === this.$constants.BookCoverAspectRatio.SQUARE + return this.coverAspectRatio == 1 }, isAlternativeBookshelfView() { // if (!this.isEntityBook) return false // Only used for bookshelf showing books return this.bookshelfView === this.$constants.BookshelfView.TITLES }, - bookCoverAspectRatio() { - return this.isCoverSquareAspectRatio ? 1 : 1.6 - }, hasFilter() { return this.filterBy && this.filterBy !== 'all' }, diff --git a/client/components/app/StreamContainer.vue b/client/components/app/StreamContainer.vue index e27d7695..bce083fa 100644 --- a/client/components/app/StreamContainer.vue +++ b/client/components/app/StreamContainer.vue @@ -2,7 +2,7 @@
- +
@@ -77,16 +77,13 @@ export default { }, computed: { coverAspectRatio() { - return this.$store.getters['getServerSetting']('coverAspectRatio') - }, - bookCoverAspectRatio() { - return this.coverAspectRatio === this.$constants.BookCoverAspectRatio.SQUARE ? 1 : 1.6 + return this.$store.getters['libraries/getBookCoverAspectRatio'] }, bookCoverWidth() { return 88 }, bookCoverPosTop() { - if (this.bookCoverAspectRatio === 1) return -10 + if (this.coverAspectRatio == 1) return -10 return -64 }, cover() { @@ -367,7 +364,7 @@ export default { if (payload.startTime !== null && !isNaN(payload.startTime)) { this.seek(payload.startTime) } else { - this.playerHandler.play() + this.playerHandler.play() } return } diff --git a/client/components/cards/ItemSearchCard.vue b/client/components/cards/ItemSearchCard.vue index a09b75c0..139a3158 100644 --- a/client/components/cards/ItemSearchCard.vue +++ b/client/components/cards/ItemSearchCard.vue @@ -31,7 +31,7 @@ export default { }, computed: { bookCoverAspectRatio() { - return this.$store.getters['getBookCoverAspectRatio'] + return this.$store.getters['libraries/getBookCoverAspectRatio'] }, coverWidth() { if (this.bookCoverAspectRatio === 1) return 50 * 1.2 diff --git a/client/components/cards/SeriesSearchCard.vue b/client/components/cards/SeriesSearchCard.vue index 8ca6b620..7f22d02e 100644 --- a/client/components/cards/SeriesSearchCard.vue +++ b/client/components/cards/SeriesSearchCard.vue @@ -24,7 +24,7 @@ export default { }, computed: { bookCoverAspectRatio() { - return this.$store.getters['getBookCoverAspectRatio'] + return this.$store.getters['libraries/getBookCoverAspectRatio'] }, name() { return this.series.name diff --git a/client/components/modals/EditCollectionModal.vue b/client/components/modals/EditCollectionModal.vue index 8e83c171..69cea658 100644 --- a/client/components/modals/EditCollectionModal.vue +++ b/client/components/modals/EditCollectionModal.vue @@ -75,7 +75,7 @@ export default { } }, bookCoverAspectRatio() { - return this.$store.getters['getBookCoverAspectRatio'] + return this.$store.getters['libraries/getBookCoverAspectRatio'] }, collection() { return this.$store.state.globals.selectedCollection || {} diff --git a/client/components/modals/UserCollectionsModal.vue b/client/components/modals/UserCollectionsModal.vue index 2160a64d..004005a3 100644 --- a/client/components/modals/UserCollectionsModal.vue +++ b/client/components/modals/UserCollectionsModal.vue @@ -70,7 +70,7 @@ export default { return this.selectedLibraryItem ? this.selectedLibraryItem.media.metadata.title : '' }, bookCoverAspectRatio() { - return this.$store.getters['getBookCoverAspectRatio'] + return this.$store.getters['libraries/getBookCoverAspectRatio'] }, selectedLibraryItem() { return this.$store.state.selectedLibraryItem diff --git a/client/components/modals/item/tabs/Cover.vue b/client/components/modals/item/tabs/Cover.vue index beb34dbb..10d3de45 100644 --- a/client/components/modals/item/tabs/Cover.vue +++ b/client/components/modals/item/tabs/Cover.vue @@ -129,11 +129,8 @@ export default { else if (this.provider == 'itunes') return 'Search Term' return 'Search Title' }, - coverAspectRatio() { - return this.$store.getters['getServerSetting']('coverAspectRatio') - }, bookCoverAspectRatio() { - return this.coverAspectRatio === this.$constants.BookCoverAspectRatio.SQUARE ? 1 : 1.6 + return this.$store.getters['libraries/getBookCoverAspectRatio'] }, libraryItemId() { return this.libraryItem ? this.libraryItem.id : null diff --git a/client/components/modals/item/tabs/Match.vue b/client/components/modals/item/tabs/Match.vue index d3ed50ec..1bab64f7 100644 --- a/client/components/modals/item/tabs/Match.vue +++ b/client/components/modals/item/tabs/Match.vue @@ -246,7 +246,7 @@ export default { } }, bookCoverAspectRatio() { - return this.$store.getters['getBookCoverAspectRatio'] + return this.$store.getters['libraries/getBookCoverAspectRatio'] }, providers() { if (this.isPodcast) return this.$store.state.scanners.podcastProviders diff --git a/client/components/modals/libraries/LibrarySettings.vue b/client/components/modals/libraries/LibrarySettings.vue index 96f287c6..e1614c22 100644 --- a/client/components/modals/libraries/LibrarySettings.vue +++ b/client/components/modals/libraries/LibrarySettings.vue @@ -1,5 +1,14 @@