From ca07ae3a8cc5d0641e080b3dfbec94e5dbb3b090 Mon Sep 17 00:00:00 2001 From: Astrian Zheng Date: Tue, 27 May 2025 16:08:05 +1000 Subject: [PATCH] feat(AlbumDetailDialog): enhance album background styling and loading indicator fix(TrackItem): adjust button hover effects and reposition track number display --- src/components/AlbumDetailDialog.vue | 47 +++++++++++++++++++++------- src/components/TrackItem.vue | 10 +++--- 2 files changed, 40 insertions(+), 17 deletions(-) diff --git a/src/components/AlbumDetailDialog.vue b/src/components/AlbumDetailDialog.vue index 3c157a9..163c511 100644 --- a/src/components/AlbumDetailDialog.vue +++ b/src/components/AlbumDetailDialog.vue @@ -10,6 +10,7 @@ import apis from '../apis' import { artistsOrganize } from '../utils' import { usePlayQueueStore } from '../stores/usePlayQueueStore' import TrackItem from './TrackItem.vue' +import LoadingIndicator from '../assets/icons/loadingindicator.vue' const props = defineProps<{ albumCid: string @@ -136,11 +137,16 @@ function playTheAlbum(from: number = 0) {
-
+ class="max-w-[60rem] w-full h-[40rem] mx-auto my-auto rounded-lg shadow-lg flex flex-col p-8 overflow-y-auto" + :style="{ + background: album ? 'linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), url(' + (album.coverDeUrl) + ')' : '#191919', + backgroundSize: 'cover', + backgroundPosition: 'center', + backgroundRepeat: 'no-repeat', + }" @click.stop> +
@@ -162,17 +168,17 @@ function playTheAlbum(from: number = 0) {
-
+
-
+
共 {{ album?.songs?.length ?? '?' }} 首曲目
-
+
-
- 加载中... +
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+ +
diff --git a/src/components/TrackItem.vue b/src/components/TrackItem.vue index 4fcaec6..dfe3640 100644 --- a/src/components/TrackItem.vue +++ b/src/components/TrackItem.vue @@ -11,12 +11,12 @@ defineProps<{ \ No newline at end of file