Front: Recommended: Fix position of play button when empty list of genres

This commit is contained in:
Arthur Jamet 2023-12-09 08:51:39 +01:00 committed by Zoe Roux
parent b3a9c9dae8
commit 1eadcb6521

View File

@ -158,9 +158,9 @@ export const ItemDetails = ({
minHeight: px(50), minHeight: px(50),
})} })}
> >
{(isLoading || genres) && ( {(
<ScrollView horizontal {...css({ alignItems: "center" })}> <ScrollView horizontal {...css({ alignItems: "center" })}>
{(genres || [...Array(3)])?.map((x, i) => ( {(genres ?? Array(3))?.map((x, i) => (
<Chip key={x ?? i} size="small" {...css({ mX: ts(0.5) })}> <Chip key={x ?? i} size="small" {...css({ mX: ts(0.5) })}>
{x ?? <Skeleton {...css({ width: rem(3), height: rem(0.8) })} />} {x ?? <Skeleton {...css({ width: rem(3), height: rem(0.8) })} />}
</Chip> </Chip>