use min width to stop date badge from resizing on load

This commit is contained in:
Emi Matchu 2020-09-15 04:50:36 -07:00
parent ec0b80c0ca
commit 02cb4731d3

View file

@ -140,8 +140,13 @@ function ItemPageBadges({ item, isEmbedded }) {
// empty). // empty).
isLoaded={item.createdAt !== undefined} isLoaded={item.createdAt !== undefined}
> >
<Badge display="block"> <Badge
<ShortTimestamp when={item.createdAt || "1970-01-01"} /> display="block"
minWidth="5.25em"
boxSizing="content-box"
textAlign="center"
>
{item.createdAt && <ShortTimestamp when={item.createdAt} />}
</Badge> </Badge>
</Skeleton> </Skeleton>
) )