fix JoinedArtists not truncating on ItemCard

This commit is contained in:
jeffvli
2026-07-09 21:52:35 -07:00
parent f91b58ea5b
commit 7d4c55fc37
2 changed files with 11 additions and 0 deletions
@@ -223,3 +223,11 @@
.row.muted.compact {
color: var(--theme-colors-foreground);
}
.row.artists-row {
display: -webkit-box;
overflow: hidden;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
white-space: normal;
}
@@ -1154,6 +1154,7 @@ export const getDataRows = (type?: 'compact' | 'default' | 'poster'): DataRow[]
artists={data.albumArtists}
linkProps={{ fw: 400, isMuted: true }}
rootTextProps={{
className: styles.artistsRow,
fw: 400,
isMuted: type === 'compact' ? false : true,
size: 'sm',
@@ -1406,6 +1407,7 @@ const ItemCardRow = memo(
// All rows except the first one (index 0) should be muted
const isMuted = index > 0 || row.isMuted;
const isArtistRow = row.id === 'albumArtists' || row.id === 'artists';
const formattedContent = useMemo(() => {
if (!data) {
@@ -1432,6 +1434,7 @@ const ItemCardRow = memo(
return (
<Text
className={clsx(styles.row, alignmentClass, {
[styles.artistsRow]: isArtistRow,
[styles.bold]: index === 0,
[styles.compact]: type === 'compact',
[styles.default]: type === 'default',