diff --git a/client/assets/app.css b/client/assets/app.css index 1a83dc1c..2e0714f9 100644 --- a/client/assets/app.css +++ b/client/assets/app.css @@ -217,36 +217,6 @@ Bookshelf Label filter: blur(20px); } - -.episode-subtitle { - word-break: break-word; - overflow: hidden; - text-overflow: ellipsis; - display: -webkit-box; - line-height: 16px; - /* fallback */ - max-height: 32px; - /* fallback */ - -webkit-line-clamp: 2; - /* number of lines to show */ - -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 { padding-top: 104px; diff --git a/client/components/modals/podcast/EpisodeFeed.vue b/client/components/modals/podcast/EpisodeFeed.vue index b5d98a25..8e4c1826 100644 --- a/client/components/modals/podcast/EpisodeFeed.vue +++ b/client/components/modals/podcast/EpisodeFeed.vue @@ -33,7 +33,7 @@
{{ episode.title }}
-

{{ episode.subtitle }}

+

{{ episode.subtitle }}

Published {{ episode.publishedAt ? $dateDistanceFromNow(episode.publishedAt) : 'Unknown' }}

diff --git a/client/components/modals/podcast/tabs/EpisodeMatch.vue b/client/components/modals/podcast/tabs/EpisodeMatch.vue index 0603a9a8..640ec547 100644 --- a/client/components/modals/podcast/tabs/EpisodeMatch.vue +++ b/client/components/modals/podcast/tabs/EpisodeMatch.vue @@ -18,7 +18,7 @@

#{{ episode.episode }}

{{ episode.title }}

-

{{ episode.subtitle }}

+

{{ episode.subtitle }}

Published {{ episode.publishedAt ? $dateDistanceFromNow(episode.publishedAt) : 'Unknown' }}

diff --git a/client/components/tables/podcast/LazyEpisodeRow.vue b/client/components/tables/podcast/LazyEpisodeRow.vue index fecf7758..18576340 100644 --- a/client/components/tables/podcast/LazyEpisodeRow.vue +++ b/client/components/tables/podcast/LazyEpisodeRow.vue @@ -7,8 +7,8 @@ -
-

+
+

diff --git a/client/pages/item/_id/index.vue b/client/pages/item/_id/index.vue index 073ec570..d568d534 100644 --- a/client/pages/item/_id/index.vue +++ b/client/pages/item/_id/index.vue @@ -125,7 +125,10 @@
-

{{ description }}

+

{{ description }}

+
@@ -182,7 +185,9 @@ export default { podcastFeedEpisodes: [], episodesDownloading: [], episodeDownloadsQueued: [], - showBookmarksModal: false + showBookmarksModal: false, + isDescriptionClamped: false, + showFullDescription: false } }, computed: { @@ -596,10 +601,15 @@ export default { this.$store.commit('setBookshelfBookIds', []) this.$store.commit('showEditModal', this.libraryItem) }, + checkDescriptionClamped() { + if (!this.$refs.description) return + this.isDescriptionClamped = this.$refs.description.scrollHeight > this.$refs.description.clientHeight + }, libraryItemUpdated(libraryItem) { if (libraryItem.id === this.libraryItemId) { console.log('Item was updated', libraryItem) this.libraryItem = libraryItem + this.$nextTick(this.checkDescriptionClamped) } }, clearProgressClick() { @@ -756,6 +766,8 @@ export default { } }, mounted() { + this.checkDescriptionClamped() + this.episodeDownloadsQueued = this.libraryItem.episodeDownloadsQueued || [] this.episodesDownloading = this.libraryItem.episodesDownloading || [] @@ -782,3 +794,18 @@ export default { } } + + \ No newline at end of file diff --git a/client/pages/library/_library/podcast/latest.vue b/client/pages/library/_library/podcast/latest.vue index 8d95203f..42f107c8 100644 --- a/client/pages/library/_library/podcast/latest.vue +++ b/client/pages/library/_library/podcast/latest.vue @@ -45,7 +45,7 @@
-

+