From 284bb4b29f7be13d8f1e26856701610578e00f56 Mon Sep 17 00:00:00 2001 From: angel Date: Fri, 25 Jul 2025 14:05:10 +0000 Subject: [PATCH] Remove star button from AlbumPage; conditionally render PopularSongs section in ArtistPage based on mobile view --- app/album/[id]/page.tsx | 8 -------- app/artist/[artist]/page.tsx | 4 +++- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/app/album/[id]/page.tsx b/app/album/[id]/page.tsx index ea79894..bb734cb 100644 --- a/app/album/[id]/page.tsx +++ b/app/album/[id]/page.tsx @@ -173,14 +173,6 @@ export default function AlbumPage() { > - diff --git a/app/artist/[artist]/page.tsx b/app/artist/[artist]/page.tsx index 62066fe..dfa2ae6 100644 --- a/app/artist/[artist]/page.tsx +++ b/app/artist/[artist]/page.tsx @@ -15,6 +15,7 @@ import { ScrollArea, ScrollBar } from '@/components/ui/scroll-area'; import Loading from '@/app/components/loading'; import { getNavidromeAPI } from '@/lib/navidrome'; import { useToast } from '@/hooks/use-toast'; +import { useIsMobile } from '@/hooks/use-mobile'; export default function ArtistPage() { const { artist: artistId } = useParams(); @@ -27,6 +28,7 @@ export default function ArtistPage() { const { getArtist, starItem, unstarItem } = useNavidrome(); const { playArtist } = useAudioPlayer(); const { toast } = useToast(); + const isMobile = useIsMobile(); const api = getNavidromeAPI(); useEffect(() => { @@ -152,7 +154,7 @@ export default function ArtistPage() { {/* Popular Songs Section */} - {popularSongs.length > 0 && ( + {!isMobile && popularSongs.length > 0 && ( )}