Skip to content

Commit 39af596

Browse files
[ML] Fix alignment of values in data frame analytics results view badges (#86621)
1 parent a79e8a3 commit 39af596

File tree

1 file changed

+12
-4
lines changed
  • x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/expandable_section

1 file changed

+12
-4
lines changed

x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/expandable_section/expandable_section.tsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,18 @@ export const ExpandableSection: FC<ExpandableSectionProps> = ({
9797
>
9898
{label !== undefined && value !== undefined && (
9999
<>
100-
<EuiText size="xs" color="subdued">
101-
<p>{label}</p>
102-
</EuiText>
103-
<EuiBadge>{value}</EuiBadge>
100+
<EuiFlexGroup>
101+
<EuiFlexItem grow={false}>
102+
<EuiText size="xs" color="subdued">
103+
<p>{label}</p>
104+
</EuiText>
105+
</EuiFlexItem>
106+
</EuiFlexGroup>
107+
<EuiFlexGroup>
108+
<EuiFlexItem grow={false}>
109+
<EuiBadge>{value}</EuiBadge>
110+
</EuiFlexItem>
111+
</EuiFlexGroup>
104112
</>
105113
)}
106114
{label === undefined && (

0 commit comments

Comments
 (0)