mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
improve overflow for album artist column
This commit is contained in:
+9
@@ -6,3 +6,12 @@
|
||||
.group a {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.artists-container {
|
||||
display: -webkit-box;
|
||||
overflow: hidden;
|
||||
-webkit-line-clamp: 2;
|
||||
line-height: 1.4;
|
||||
-webkit-box-orient: vertical;
|
||||
color: var(--theme-colors-foreground-muted);
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ import {
|
||||
TableColumnTextContainer,
|
||||
} from '/@/renderer/components/item-list/item-table-list/item-table-list-column';
|
||||
import { AppRoute } from '/@/renderer/router/routes';
|
||||
import { Group } from '/@/shared/components/group/group';
|
||||
import { Skeleton } from '/@/shared/components/skeleton/skeleton';
|
||||
import { Text } from '/@/shared/components/text/text';
|
||||
import { RelatedAlbumArtist } from '/@/shared/types/domain-types';
|
||||
@@ -32,7 +31,7 @@ const AlbumArtistsColumn = (props: ItemTableListInnerColumn) => {
|
||||
if (Array.isArray(row)) {
|
||||
return (
|
||||
<TableColumnContainer {...props}>
|
||||
<Group className={styles.group} wrap="wrap">
|
||||
<div className={styles.artistsContainer}>
|
||||
{albumArtists.map((albumArtist, index) => (
|
||||
<Text
|
||||
component={Link}
|
||||
@@ -43,10 +42,10 @@ const AlbumArtistsColumn = (props: ItemTableListInnerColumn) => {
|
||||
to={albumArtist.path}
|
||||
>
|
||||
{albumArtist.name}
|
||||
{index < albumArtists.length - 1 && ','}
|
||||
{index < albumArtists.length - 1 && ', '}
|
||||
</Text>
|
||||
))}
|
||||
</Group>
|
||||
</div>
|
||||
</TableColumnContainer>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user