Skip to content

Commit

Permalink
Fix override value column width for Severity Override
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaindik committed Sep 8, 2024
1 parent 24fea79 commit e50ece0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ const OverrideColumn = styled(EuiFlexItem)`
text-overflow: ellipsis;
`;

const OverrideValueColumn = styled(EuiFlexItem)`
width: 30px;
max-width: 30px;
const OverrideValueColumn = styled.div`
width: 50px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
`;

Expand Down Expand Up @@ -96,16 +96,18 @@ export const SeverityMappingItem = ({ severityMappingItem }: SeverityMappingItem
<span data-test-subj="severityOverrideField">{`${severityMappingItem.field}:`}</span>
</EuiToolTip>
</OverrideColumn>
<OverrideValueColumn>
<EuiFlexItem grow={false}>
<EuiToolTip
content={severityMappingItem.value}
data-test-subj={`severityOverrideValue-${severityMappingItem.value}`}
>
<span data-test-subj="severityOverrideValue">
{defaultToEmptyTag(severityMappingItem.value)}
</span>
<OverrideValueColumn>
<span data-test-subj="severityOverrideValue">
{defaultToEmptyTag(severityMappingItem.value)}
</span>
</OverrideValueColumn>
</EuiToolTip>
</OverrideValueColumn>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiIcon type={'sortRight'} />
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ Default.args = {
field: 'event.severity',
operator: 'equals',
severity: 'low',
value: 'not severe',
value: 'LOW',
},
{
field: 'event.severity',
field: 'google_workspace.alert.metadata.severity',
operator: 'equals',
severity: 'high',
value: 'pretty severe',
value: 'VERY HIGH',
},
],
},
Expand Down

0 comments on commit e50ece0

Please sign in to comment.