From 60015e1da2d9d87bcf8fe10174543c9d9c621c03 Mon Sep 17 00:00:00 2001 From: Alain Nussbaumer Date: Wed, 26 Jul 2023 16:12:21 +0200 Subject: [PATCH] [web] Provide similar style between podcast, audiobook, and album pages The podcast page is now similar to the audiobook or album pages. Thus, making the UI a bit more coherent. --- web-src/src/components/ProgressBar.vue | 2 +- web-src/src/mystyles.scss | 4 +- web-src/src/pages/PageAlbum.vue | 15 +++--- web-src/src/pages/PagePodcast.vue | 63 ++++++++++++++------------ 4 files changed, 45 insertions(+), 39 deletions(-) diff --git a/web-src/src/components/ProgressBar.vue b/web-src/src/components/ProgressBar.vue index 9d2512ab..2060ffe2 100644 --- a/web-src/src/components/ProgressBar.vue +++ b/web-src/src/components/ProgressBar.vue @@ -1,7 +1,7 @@ diff --git a/web-src/src/mystyles.scss b/web-src/src/mystyles.scss index 533bc230..3d559e19 100644 --- a/web-src/src/mystyles.scss +++ b/web-src/src/mystyles.scss @@ -5,7 +5,7 @@ .progress-bar { background-color: $info; - border-radius: 9999px; + border-radius: 2px; height: 4px; } @@ -14,7 +14,7 @@ } .media.with-progress { - margin-top: 0px; + margin-top: 6px; } a.navbar-item { diff --git a/web-src/src/pages/PageAlbum.vue b/web-src/src/pages/PageAlbum.vue index 1f5ebc96..41f00961 100644 --- a/web-src/src/pages/PageAlbum.vue +++ b/web-src/src/pages/PageAlbum.vue @@ -13,7 +13,7 @@ @@ -25,7 +25,7 @@ :artist="album.artist" :album="album.name" class="is-clickable fd-has-shadow fd-cover fd-cover-medium-image" - @click="show_album_details_modal = true" + @click="show_details_modal = true" /> @@ -68,7 +68,7 @@ const dataObject = { export default { name: 'PageAlbum', - components: { ContentWithHero, ListTracks, ModalDialogAlbum, CoverArtwork }, + components: { ContentWithHero, CoverArtwork, ListTracks, ModalDialogAlbum }, beforeRouteEnter(to, from, next) { dataObject.load(to).then((response) => { @@ -86,8 +86,8 @@ export default { data() { return { album: {}, - tracks: new GroupByList(), - show_album_details_modal: false + show_details_modal: false, + tracks: new GroupByList() } }, @@ -99,7 +99,6 @@ export default { params: { id: this.album.artist_id } }) }, - play() { webapi.player_play_uri(this.album.uri, true) } diff --git a/web-src/src/pages/PagePodcast.vue b/web-src/src/pages/PagePodcast.vue index cb8fb452..17e20078 100644 --- a/web-src/src/pages/PagePodcast.vue +++ b/web-src/src/pages/PagePodcast.vue @@ -1,26 +1,34 @@