mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-20 11:03:06 +02:00
optimize detail columns
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
import styles from './image-column.module.css';
|
||||
import { ItemDetailListCellProps } from './types';
|
||||
|
||||
import { ItemImage } from '/@/renderer/components/item-image/item-image';
|
||||
import { LibraryItem } from '/@/shared/types/domain-types';
|
||||
|
||||
export const ImageColumn = ({ song }: ItemDetailListCellProps) =>
|
||||
song.imageId ? (
|
||||
<ItemImage id={song.imageId} itemType={LibraryItem.SONG} type="itemCard" />
|
||||
) : (
|
||||
'—'
|
||||
);
|
||||
export const ImageColumn = ({ song }: ItemDetailListCellProps) => (
|
||||
<ItemImage
|
||||
className={styles.compactImage}
|
||||
containerClassName={styles.compactContainer}
|
||||
id={song.imageId}
|
||||
itemType={LibraryItem.SONG}
|
||||
type="table"
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user