* fix: 限制FMCard上的歌名长度

避免曲名过长将其他部分顶出卡片外

* fix: Library取词逻辑

* fix: 歌词页面Player UI

* fix: 搜索页面专辑发布日期

* fix: 修复私人FM启动时总是加载新的数据,导致数据过多的问题

* update

* 更改FM的初始化顺序

* Update player.ts

* fix: 将FMCard的歌名长度限制为两行
This commit is contained in:
memorydream 2022-04-10 23:37:36 +08:00 committed by GitHub
parent 70d1de0e0f
commit a95524ff34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 21 deletions

View file

@ -8,6 +8,7 @@ import Cover from '@/renderer/components/Cover'
import TrackGrid from '@/renderer/components/TracksGrid'
import { player } from '@/renderer/store'
import { resizeImage } from '@/renderer/utils/common'
import dayjs from 'dayjs'
const Artists = ({ artists }: { artists: Artist[] }) => {
const navigate = useNavigate()
@ -62,7 +63,7 @@ const Albums = ({ albums }: { albums: Album[] }) => {
{album.name}
</div>
<div className='mt-0.5 text-sm font-medium text-gray-500 dark:text-gray-400'>
· {album?.artist.name} · 2020
· {album?.artist.name} · {dayjs(album.publishTime).year()}
</div>
</div>
</div>