style(snapshots-timeline): ensure same width for all cards
This commit is contained in:
parent
ef2d644146
commit
2bb11b0d33
1 changed files with 8 additions and 3 deletions
|
|
@ -82,9 +82,14 @@ export const SnapshotTimeline = (props: Props) => {
|
|||
<div className="text-xs text-muted-foreground opacity-75">
|
||||
<ByteSize bytes={snapshot.size} />
|
||||
</div>
|
||||
{isLatest && (
|
||||
<div className="text-xs font-semibold text-primary px-2 py-0.5 bg-primary/20 rounded">Latest</div>
|
||||
)}
|
||||
<div
|
||||
aria-hidden={!isLatest}
|
||||
className={cn("text-xs font-semibold text-primary px-2 py-0.5 bg-primary/20 rounded", {
|
||||
invisible: !isLatest,
|
||||
})}
|
||||
>
|
||||
Latest
|
||||
</div>
|
||||
</button>
|
||||
);
|
||||
})}
|
||||
|
|
|
|||
Loading…
Reference in a new issue