Dont reserve label space if there are no labels

This commit is contained in:
Jackson Harper 2022-04-11 14:06:11 -07:00
parent 113101fd63
commit aa9797f4d4

View file

@ -148,7 +148,7 @@ export function ArticleContainer(props: ArticleContainerProps): JSX.Element {
href={props.article.url}
/>
{props.labels ? (
<SpanBox css={{ py: '16px', width: '100%' }}>
<SpanBox css={{ pb: '16px', width: '100%', '&:empty': { display: 'none' } }}>
{props.labels?.map((label) =>
<LabelChip key={label.id} text={label.name} color={label.color} />
)}