fix additional instances of JoinedArtists not truncating

This commit is contained in:
jeffvli
2026-07-17 11:10:56 -07:00
parent 0940a4d1f5
commit 235fb4d13f
9 changed files with 64 additions and 6 deletions
@@ -1,3 +1,4 @@
import styles from './artists-column.module.css';
import { ItemDetailListCellProps } from './types';
import {
@@ -17,7 +18,10 @@ export const AlbumArtistColumn = ({ isRowHovered, song }: ItemDetailListCellProp
artists={song.albumArtists ?? []}
linkProps={JOINED_ARTISTS_MUTED_PROPS.linkProps}
readOnly={!isRowHovered}
rootTextProps={JOINED_ARTISTS_MUTED_PROPS.rootTextProps}
rootTextProps={{
...JOINED_ARTISTS_MUTED_PROPS.rootTextProps,
className: styles.artists,
}}
/>
);
};
@@ -1,3 +1,4 @@
import styles from './artists-column.module.css';
import { ItemDetailListCellProps } from './types';
import {
@@ -17,7 +18,10 @@ export const ArtistColumn = ({ isRowHovered, song }: ItemDetailListCellProps) =>
artists={song.artists ?? []}
linkProps={JOINED_ARTISTS_MUTED_PROPS.linkProps}
readOnly={!isRowHovered}
rootTextProps={JOINED_ARTISTS_MUTED_PROPS.rootTextProps}
rootTextProps={{
...JOINED_ARTISTS_MUTED_PROPS.rootTextProps,
className: styles.artists,
}}
/>
);
};
@@ -0,0 +1,10 @@
.artists {
display: block;
overflow: hidden;
text-overflow: ellipsis;
}
.artists,
.artists > * {
white-space: nowrap;
}