From b01ef1c6913dd958d2361ff0e4d237c9db24f1bc Mon Sep 17 00:00:00 2001 From: advplyr Date: Thu, 4 Jul 2024 16:07:28 -0500 Subject: [PATCH] Fix library shelf height on sorting by title with ignore prefixes and sorting by published year --- client/components/cards/LazyBookCard.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/components/cards/LazyBookCard.vue b/client/components/cards/LazyBookCard.vue index 426a43d07b..5bb406e4f4 100644 --- a/client/components/cards/LazyBookCard.vue +++ b/client/components/cards/LazyBookCard.vue @@ -337,7 +337,7 @@ export default { if (this.recentEpisode) return this.recentEpisode.title const ignorePrefix = this.orderBy === 'media.metadata.title' && this.sortingIgnorePrefix if (this.collapsedSeries) return ignorePrefix ? this.collapsedSeries.nameIgnorePrefix : this.collapsedSeries.name - return ignorePrefix ? this.mediaMetadata.titleIgnorePrefix : this.title || '\u00A0' + return ignorePrefix ? this.mediaMetadata.titleIgnorePrefix || '\u00A0' : this.title || '\u00A0' }, displayLineTwo() { if (this.recentEpisode) return this.title @@ -358,7 +358,10 @@ export default { if (this.orderBy === 'media.duration') return 'Duration: ' + this.$elapsedPrettyExtended(this.media.duration, false) if (this.orderBy === 'size') return 'Size: ' + this.$bytesPretty(this._libraryItem.size) if (this.orderBy === 'media.numTracks') return `${this.numEpisodes} Episodes` - if (this.orderBy === 'media.metadata.publishedYear' && this.mediaMetadata.publishedYear) return 'Published ' + this.mediaMetadata.publishedYear + if (this.orderBy === 'media.metadata.publishedYear') { + if (this.mediaMetadata.publishedYear) return 'Published ' + this.mediaMetadata.publishedYear + return '\u00A0' + } return null }, episodeProgress() {