mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 06:07:48 +00:00
feat: 其他小更新
This commit is contained in:
parent
2e41001d02
commit
db5730dfdd
12 changed files with 33 additions and 7 deletions
|
|
@ -55,6 +55,7 @@ const MediaControls = () => {
|
|||
}
|
||||
|
||||
const FMCard = () => {
|
||||
const navigate = useNavigate()
|
||||
const [background, setBackground] = useState('')
|
||||
|
||||
const playerSnapshot = useSnapshot(player)
|
||||
|
|
@ -83,7 +84,11 @@ const FMCard = () => {
|
|||
style={{ background }}
|
||||
>
|
||||
{coverUrl ? (
|
||||
<img className='rounded-lg shadow-2xl' src={coverUrl} />
|
||||
<img
|
||||
onClick={() => track?.al?.id && navigate(`/album/${track.al.id}`)}
|
||||
className='rounded-lg shadow-2xl'
|
||||
src={coverUrl}
|
||||
/>
|
||||
) : (
|
||||
<div className='aspect-square h-full rounded-lg bg-gray-200 dark:bg-white/5'></div>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue