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).
|
// 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>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue