From a1114235d618d219b4b3161dbe0f6488069fa244 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Sat, 27 Dec 2025 02:25:13 -0800 Subject: [PATCH] add layout animation for artist album cards --- .../album-artist-detail-content.tsx | 54 ++++++++++++------- 1 file changed, 34 insertions(+), 20 deletions(-) diff --git a/src/renderer/features/artists/components/album-artist-detail-content.tsx b/src/renderer/features/artists/components/album-artist-detail-content.tsx index e3df2779f..bca31fe7c 100644 --- a/src/renderer/features/artists/components/album-artist-detail-content.tsx +++ b/src/renderer/features/artists/components/album-artist-detail-content.tsx @@ -1,4 +1,5 @@ import { useQuery, useQueryClient, useSuspenseQuery } from '@tanstack/react-query'; +import { LayoutGroup, motion } from 'motion/react'; import { useCallback, useMemo, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { createSearchParams, generatePath, Link, useParams } from 'react-router'; @@ -796,15 +797,25 @@ const AlbumSection = ({ albums, controls, cq, rows, title }: AlbumSectionProps) {displayedAlbums.map((album) => ( - + + + ))} @@ -1017,17 +1028,20 @@ const ArtistAlbums = () => { />
- {cq.isCalculated && - releaseTypeEntries.map(({ albums, displayName, releaseType }) => ( - - ))} + {cq.isCalculated && ( + + {releaseTypeEntries.map(({ albums, displayName, releaseType }) => ( + + ))} + + )}
);