diff --git a/src/renderer/features/lyrics/lyrics.tsx b/src/renderer/features/lyrics/lyrics.tsx index 1f894fa7..de60775c 100644 --- a/src/renderer/features/lyrics/lyrics.tsx +++ b/src/renderer/features/lyrics/lyrics.tsx @@ -1,4 +1,5 @@ import { Center, Group } from '@mantine/core'; +import { AnimatePresence, motion } from 'framer-motion'; import { ErrorBoundary } from 'react-error-boundary'; import { RiInformationFill } from 'react-icons/ri'; import styled from 'styled-components'; @@ -9,7 +10,7 @@ import { ErrorFallback } from '/@/renderer/features/action-required'; import { UnsynchronizedLyrics } from '/@/renderer/features/lyrics/unsynchronized-lyrics'; import { getServerById, useCurrentSong } from '/@/renderer/store'; -const LyricsScrollContainer = styled(ScrollArea)` +const LyricsScrollContainer = styled(motion(ScrollArea))` z-index: 1; text-align: center; transform: translateY(-2rem); @@ -67,23 +68,29 @@ export const Lyrics = () => { ) : ( - - {Array.isArray(data.lyrics) ? ( - {}} - /> - ) : ( - {}} - /> - )} - + + + {Array.isArray(data.lyrics) ? ( + {}} + /> + ) : ( + {}} + /> + )} + + )} );