fix album column styling to fit link to width of text

This commit is contained in:
jeffvli
2025-11-23 15:22:08 -08:00
parent 56162b650c
commit bbcee3f461
2 changed files with 19 additions and 9 deletions
@@ -7,6 +7,12 @@
user-select: none;
}
.album-link {
display: inline;
width: max-content;
max-width: 100%;
}
.album-container.compact {
-webkit-line-clamp: 1;
}
@@ -31,20 +31,24 @@ const AlbumColumn = (props: ItemTableListInnerColumn) => {
if (albumId && albumPath) {
return (
<TableColumnContainer {...props}>
<Text
<div
className={clsx(styles.albumContainer, {
[styles.compact]: props.size === 'compact',
[styles.large]: props.size === 'large',
})}
component={Link}
isLink
isMuted
isNoSelect
state={{ item: song }}
to={albumPath}
>
{row}
</Text>
<Text
className={styles.albumLink}
component={Link}
isLink
isMuted
isNoSelect
state={{ item: song }}
to={albumPath}
>
{row}
</Text>
</div>
</TableColumnContainer>
);
}