From 90dd1a1fe83a7d9ef88d491078896a0057678145 Mon Sep 17 00:00:00 2001 From: geoffrey45 Date: Tue, 6 Dec 2022 23:29:14 +0300 Subject: [PATCH] add functionality to play button on artist page --- src/components/AlbumView/ArtistAlbums.vue | 11 +++--- src/components/ArtistView/Header.vue | 7 ++-- src/components/ArtistView/TopTracks.vue | 2 +- src/components/nav/Titles/QueueTitle.vue | 13 +++++++ src/components/shared/PlayBtnRect.vue | 13 +++---- src/composables/enums.ts | 2 ++ src/composables/fetch/artists.ts | 23 +++++++++++-- src/composables/usePlayFrom.ts | 33 +++++++++++++----- src/interfaces.ts | 6 ++++ src/stores/pages/artist.ts | 23 ++++++++++--- src/stores/queue.ts | 14 ++++++-- src/views/ArtistView/Main.vue | 41 ++++++++++++++++++----- 12 files changed, 145 insertions(+), 43 deletions(-) diff --git a/src/components/AlbumView/ArtistAlbums.vue b/src/components/AlbumView/ArtistAlbums.vue index 9c1cec86..614373f3 100644 --- a/src/components/AlbumView/ArtistAlbums.vue +++ b/src/components/AlbumView/ArtistAlbums.vue @@ -1,20 +1,21 @@ diff --git a/src/components/ArtistView/Header.vue b/src/components/ArtistView/Header.vue index 6d1fc0fd..322ce756 100644 --- a/src/components/ArtistView/Header.vue +++ b/src/components/ArtistView/Header.vue @@ -20,7 +20,7 @@ {{ formatSeconds(artist.info.duration, true) }} - +
@@ -28,7 +28,7 @@
@@ -55,9 +56,11 @@ const artist = useArtistPageStore(); .artist-img { height: 18rem; + img { height: 100%; width: 100%; + aspect-ratio: 1; object-fit: cover; object-position: 0% 20%; } diff --git a/src/components/ArtistView/TopTracks.vue b/src/components/ArtistView/TopTracks.vue index b0cefacd..530593cb 100644 --- a/src/components/ArtistView/TopTracks.vue +++ b/src/components/ArtistView/TopTracks.vue @@ -23,8 +23,8 @@ const artist = useArtistPageStore();