improve compact size item card

This commit is contained in:
jeffvli
2025-12-30 03:59:17 -08:00
parent 5b7557bd45
commit adc094005f
15 changed files with 34 additions and 20 deletions
@@ -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',
}}
/>
);
}