Skip to content

Commit

Permalink
[ML] add flex with wrap to the type column
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Feb 22, 2021
1 parent b5204a4 commit 728df29
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -451,12 +451,15 @@ export const ModelsList: FC = () => {
}),
sortable: true,
align: 'left',
render: (types: string[]) =>
types.map((type) => (
<EuiBadge key={type} color="hollow">
{type}
</EuiBadge>
)),
render: (types: string[]) => (
<EuiFlexGroup gutterSize={'xs'} wrap>
{types.map((type) => (
<EuiFlexItem key={type} grow={false}>
<EuiBadge color="hollow">{type}</EuiBadge>
</EuiFlexItem>
))}
</EuiFlexGroup>
),
},
{
field: ModelsTableToConfigMapping.createdAt,
Expand Down

0 comments on commit 728df29

Please sign in to comment.