mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-22 03:44:34 +02:00
add support for track subtitle display (#1177)
This commit is contained in:
+19
-3
@@ -213,7 +213,6 @@ export const QueueSongTitleCombinedColumn = (props: ItemTableListInnerColumn) =>
|
||||
const path = getTitlePath(props.itemType, (props.data[props.rowIndex] as any).id as string);
|
||||
|
||||
const item = props.data[props.rowIndex] as any;
|
||||
const textStyles = isActive ? { color: 'var(--theme-colors-primary)' } : {};
|
||||
|
||||
const titleLinkProps = path
|
||||
? {
|
||||
@@ -265,17 +264,34 @@ export const QueueSongTitleCombinedColumn = (props: ItemTableListInnerColumn) =>
|
||||
</div>
|
||||
<div
|
||||
className={clsx(styles.textContainer, {
|
||||
[styles.active]: isActive,
|
||||
[styles.compact]: props.size === 'compact',
|
||||
})}
|
||||
>
|
||||
<Text
|
||||
className={styles.title}
|
||||
className={clsx({
|
||||
[styles.active]: isActive,
|
||||
[styles.title]: true,
|
||||
})}
|
||||
isNoSelect
|
||||
size="md"
|
||||
{...titleLinkProps}
|
||||
style={textStyles}
|
||||
>
|
||||
{row.name as string}
|
||||
{song?.trackSubtitle && props.itemType !== LibraryItem.QUEUE_SONG && (
|
||||
<Text
|
||||
className={clsx({
|
||||
[styles.active]: isActive,
|
||||
})}
|
||||
component="span"
|
||||
isMuted
|
||||
size="sm"
|
||||
>
|
||||
{' ('}
|
||||
{song.trackSubtitle}
|
||||
{')'}
|
||||
</Text>
|
||||
)}
|
||||
</Text>
|
||||
<div className={styles.artists}>
|
||||
<JoinedArtists
|
||||
|
||||
Reference in New Issue
Block a user