feat: updates (#1419)

* feat: TrackList 高亮播放中Track & Track 子标题(歌名翻译)

* fix: 不对id为0的歌手应用下划线

* feat: TrackList的Track支持深色模式

* fix: typo

* feat: 专辑页面的subtitle支持深色模式

* fix: typo

* feat: 在TrackList中高亮播放Track里的歌手信息
This commit is contained in:
memorydream 2022-03-18 14:13:56 +08:00 committed by GitHub
parent e3486ab550
commit 08abf8229f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 83 additions and 28 deletions

View file

@ -11,7 +11,9 @@ const ArtistInline = ({
<div className={classNames('flex truncate', className)}>
{artists.map((artist, index) => (
<span key={artist.id}>
<span className='hover:underline'>{artist.name}</span>
<span className={classNames({ 'hover:underline': !!artist.id })}>
{artist.name}
</span>
{index < artists.length - 1 ? ', ' : ''}&nbsp;
</span>
))}