mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
fix album column styling to fit link to width of text
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user