mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 21:50:35 +02:00
improve compact size item card
This commit is contained in:
@@ -177,6 +177,7 @@
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
gap: 0;
|
||||
width: 100%;
|
||||
padding: var(--theme-spacing-xs);
|
||||
background-color: alpha(var(--theme-colors-background), 0.5);
|
||||
|
||||
@@ -896,7 +896,7 @@ const PosterItemCard = ({
|
||||
);
|
||||
};
|
||||
|
||||
export const getDataRows = (): DataRow[] => {
|
||||
export const getDataRows = (type?: 'compact' | 'default' | 'poster'): DataRow[] => {
|
||||
return [
|
||||
{
|
||||
format: (data) => {
|
||||
@@ -959,7 +959,11 @@ export const getDataRows = (): DataRow[] => {
|
||||
artistName={data.albumArtistName}
|
||||
artists={data.albumArtists}
|
||||
linkProps={{ fw: 400, isMuted: true }}
|
||||
rootTextProps={{ fw: 400, isMuted: true, size: 'sm' }}
|
||||
rootTextProps={{
|
||||
fw: 400,
|
||||
isMuted: type === 'compact' ? false : true,
|
||||
size: 'sm',
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user