Skip to content

Commit

Permalink
restore label flex
Browse files Browse the repository at this point in the history
  • Loading branch information
joshri committed Sep 11, 2023
1 parent f452f18 commit 5ae95c9
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions ui/components/Metadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,15 @@ const MetadataSection: React.FC<{ title: string; items: [string, any][] }> = ({
{title}
</Text>
{title === "Labels" ? (
items.map((label, index) => {
return (
<Label key={index}>
{label[0]}: {label[1]}
</Label>
);
})
<Flex wide start wrap gap="4">
{items.map((label, index) => {
return (
<Label key={index}>
{label[0]}: {label[1]}
</Label>
);
})}
</Flex>
) : (
<InfoList items={items} />
)}
Expand Down

0 comments on commit 5ae95c9

Please sign in to comment.