From 688531f0a73d1851ee998c5d16883b0433a6e7e4 Mon Sep 17 00:00:00 2001 From: advplyr Date: Wed, 10 May 2023 20:18:29 -0400 Subject: [PATCH] Update:Podcast episodes fallback to description when subtitle is null #1752 --- client/assets/app.css | 14 ++++++++++++++ .../components/tables/podcast/EpisodeTableRow.vue | 9 ++------- client/pages/library/_library/podcast/latest.vue | 2 +- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/client/assets/app.css b/client/assets/app.css index f8e51521..b7b8499d 100644 --- a/client/assets/app.css +++ b/client/assets/app.css @@ -232,6 +232,20 @@ Bookshelf Label -webkit-box-orient: vertical; } +.episode-subtitle-long { + word-break: break-word; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + line-height: 16px; + /* fallback */ + max-height: 72px; + /* fallback */ + -webkit-line-clamp: 6; + /* number of lines to show */ + -webkit-box-orient: vertical; +} + /* Padding for toastification toasts in the top right to not cover appbar/toolbar */ .app-bar-and-toolbar .Vue-Toastification__container.top-right { diff --git a/client/components/tables/podcast/EpisodeTableRow.vue b/client/components/tables/podcast/EpisodeTableRow.vue index a5b85e6e..b05d1c86 100644 --- a/client/components/tables/podcast/EpisodeTableRow.vue +++ b/client/components/tables/podcast/EpisodeTableRow.vue @@ -7,8 +7,7 @@ -

{{ subtitle }}

- +

Season #{{ episode.season }}

Episode #{{ episode.episode }}

@@ -22,10 +21,6 @@

{{ timeRemaining }}

- - @@ -89,7 +84,7 @@ export default { return this.episode.title || '' }, subtitle() { - return this.episode.subtitle || '' + return this.episode.subtitle || this.description }, description() { return this.episode.description || '' diff --git a/client/pages/library/_library/podcast/latest.vue b/client/pages/library/_library/podcast/latest.vue index 96c8ebf6..d0565816 100644 --- a/client/pages/library/_library/podcast/latest.vue +++ b/client/pages/library/_library/podcast/latest.vue @@ -45,7 +45,7 @@
-

{{ episode.subtitle }}

+