diff --git a/assets/app.css b/assets/app.css index 2b06265c..2eb7cfa7 100644 --- a/assets/app.css +++ b/assets/app.css @@ -117,6 +117,20 @@ 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; +} + .line-clamp-2 { overflow: hidden; display: -webkit-box; diff --git a/components/tables/podcast/EpisodeRow.vue b/components/tables/podcast/EpisodeRow.vue index b9dd9894..36c7ed43 100644 --- a/components/tables/podcast/EpisodeRow.vue +++ b/components/tables/podcast/EpisodeRow.vue @@ -17,7 +17,15 @@ {{ title }}

-

{{ subtitle }}

+

+ +

+
Episode #{{ episodeNumber }}
+
Season #{{ season }}
+
+ {{ episodeType }} +
+
@@ -90,7 +98,17 @@ export default { return this.episode.title || '' }, subtitle() { - return this.episode.subtitle || '' + return this.episode.subtitle || this.episode.description || '' + }, + episodeNumber() { + return this.episode.episode + }, + season() { + return this.episode.season + }, + episodeType() { + if (this.episode.episodeType === 'full') return null // only show Trailer/Bonus + return this.episode.episodeType }, duration() { return this.$secondsToTimestamp(this.episode.duration) diff --git a/components/tables/podcast/LatestEpisodeRow.vue b/components/tables/podcast/LatestEpisodeRow.vue index 9f7d797b..09bd1156 100644 --- a/components/tables/podcast/LatestEpisodeRow.vue +++ b/components/tables/podcast/LatestEpisodeRow.vue @@ -16,7 +16,16 @@

{{ title }}

-

{{ subtitle }}

+ +

+ +

+
Episode #{{ episodeNumber }}
+
Season #{{ season }}
+
+ {{ episodeType }} +
+
@@ -92,7 +101,17 @@ export default { return this.episode.title || '' }, subtitle() { - return this.episode.subtitle || '' + return this.episode.subtitle || this.episode.description || '' + }, + episodeNumber() { + return this.episode.episode + }, + season() { + return this.episode.season + }, + episodeType() { + if (this.episode.episodeType === 'full') return null // only show Trailer/Bonus + return this.episode.episodeType }, duration() { return this.$secondsToTimestamp(this.episode.duration) diff --git a/pages/item/_id/_episode/index.vue b/pages/item/_id/_episode/index.vue index 3c78570f..c90cd1e8 100644 --- a/pages/item/_id/_episode/index.vue +++ b/pages/item/_id/_episode/index.vue @@ -16,6 +16,14 @@ {{ title }}

+
+
Episode #{{ episodeNumber }}
+
Season #{{ season }}
+
+ {{ episodeType }} +
+
+

Your Progress: {{ Math.round(progressPercent * 100) }}%

@@ -160,6 +168,16 @@ export default { description() { return this.episode.description || '' }, + episodeNumber() { + return this.episode.episode + }, + season() { + return this.episode.season + }, + episodeType() { + if (this.episode.episodeType === 'full') return null // only show Trailer/Bonus + return this.episode.episodeType + }, duration() { return this.$secondsToTimestamp(this.episode.duration) }, diff --git a/pages/item/_id/index.vue b/pages/item/_id/index.vue index 9cab5bd7..28e34be0 100644 --- a/pages/item/_id/index.vue +++ b/pages/item/_id/index.vue @@ -86,6 +86,9 @@
+
Type
+
{{ podcastType }}
+
Series