use min width to stop date badge from resizing on load
This commit is contained in:
parent
ec0b80c0ca
commit
02cb4731d3
1 changed files with 7 additions and 2 deletions
|
@ -140,8 +140,13 @@ function ItemPageBadges({ item, isEmbedded }) {
|
|||
// empty).
|
||||
isLoaded={item.createdAt !== undefined}
|
||||
>
|
||||
<Badge display="block">
|
||||
<ShortTimestamp when={item.createdAt || "1970-01-01"} />
|
||||
<Badge
|
||||
display="block"
|
||||
minWidth="5.25em"
|
||||
boxSizing="content-box"
|
||||
textAlign="center"
|
||||
>
|
||||
{item.createdAt && <ShortTimestamp when={item.createdAt} />}
|
||||
</Badge>
|
||||
</Skeleton>
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue