mirror of
https://github.com/strapi/strapi.git
synced 2025-08-08 00:37:38 +00:00
Improve Card
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
d0ae68d742
commit
a941a8ac51
@ -51,13 +51,21 @@ const Card = ({
|
||||
<Border color={hasError ? 'orange' : 'mediumBlue'} shown={checked || hasError} />
|
||||
{children}
|
||||
</CardImgWrapper>
|
||||
<Flex>
|
||||
<Title>{!withoutFileInfo && name} </Title>
|
||||
{!withoutFileInfo && <Tag label={getType(fileType)} />}
|
||||
</Flex>
|
||||
<Text color="grey" fontSize="xs" ellipsis>
|
||||
{!withoutFileInfo && `${getExtension(fileType)} - ${fileSize}`}
|
||||
</Text>
|
||||
|
||||
{!withoutFileInfo ? (
|
||||
<>
|
||||
<Flex>
|
||||
<Title>{name}</Title>
|
||||
<Tag label={getType(fileType)} />
|
||||
</Flex>
|
||||
<Text color="grey" fontSize="xs" ellipsis>
|
||||
{!withoutFileInfo && `${getExtension(fileType)} - ${fileSize}`}
|
||||
</Text>
|
||||
</>
|
||||
) : (
|
||||
<Text lineHeight="13px" />
|
||||
)}
|
||||
|
||||
{hasError && <ErrorMessage title={errorMessage}>{errorMessage}</ErrorMessage>}
|
||||
</Wrapper>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user