mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
added condition for the origin text
This commit is contained in:
parent
2a66829d24
commit
5e7b5868d8
1 changed files with 17 additions and 15 deletions
|
|
@ -94,21 +94,23 @@ export function LibraryGridCard(props: LinkedItemCardProps): JSX.Element {
|
|||
{removeHTMLTags(props.item.author)}
|
||||
</SpanBox>
|
||||
)}
|
||||
<Box
|
||||
css={{
|
||||
height: '4px',
|
||||
width: '4px',
|
||||
borderRadius: '50%',
|
||||
display:'inline-block',
|
||||
background: 'var(--colors-graySolid)',
|
||||
margin: '1px'
|
||||
}}
|
||||
></Box>
|
||||
<SpanBox
|
||||
css={{ color: 'var(--colors-graySolid)' }}
|
||||
>
|
||||
{props.originText}
|
||||
</SpanBox>
|
||||
{props.originText && (
|
||||
<>
|
||||
<Box
|
||||
css={{
|
||||
height: '4px',
|
||||
width: '4px',
|
||||
borderRadius: '50%',
|
||||
display: 'inline-block',
|
||||
background: 'var(--colors-graySolid)',
|
||||
margin: '1px',
|
||||
}}
|
||||
></Box>
|
||||
<SpanBox css={{ color: 'var(--colors-graySolid)' }}>
|
||||
{props.originText}
|
||||
</SpanBox>
|
||||
</>
|
||||
)}
|
||||
</StyledText>
|
||||
</HStack>
|
||||
</VStack>
|
||||
|
|
|
|||
Loading…
Reference in a new issue