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