Skip to content

Commit

Permalink
[Security Solution][Detections] Fixes utility bar text overflow issue…
Browse files Browse the repository at this point in the history
… on Rule Execution Log (#129752)

## Summary

Resolves #129321 (comment)

#### Before:
<p align="center">
  <img width="700" src="https://user-images.githubusercontent.com/2946766/162233704-2d321bd0-bde8-4d3a-942a-9155138fffed.png" />
</p>


#### After:
<p align="center">
  <img width="700" src="https://user-images.githubusercontent.com/2946766/162219564-22fc4158-f2d8-4e5b-bf64-50dcc4034260.gif" />
</p>




### Checklist

Delete any items that are not applicable to this PR.

- [X] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
  • Loading branch information
spong authored Apr 7, 2022
1 parent 401ad52 commit a27ae07
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 21 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -314,18 +314,20 @@ const ExecutionLogTableComponent: React.FC<ExecutionLogTableProps> = ({
)}
</UtilityBarSection>
<UtilityBarSection>
<UtilityBarText dataTestSubj="executionsShowing">
{timelines.getLastUpdated({
showUpdating: isLoading || isFetching,
updatedAt: dataUpdatedAt,
})}
</UtilityBarText>
<UtilitySwitch
label={i18n.RULE_EXECUTION_LOG_SHOW_METRIC_COLUMNS_SWITCH}
checked={showMetricColumns}
compressed={true}
onChange={(e) => onShowMetricColumnsCallback(e.target.checked)}
/>
<UtilityBarGroup>
<UtilityBarText dataTestSubj="executionsShowing">
{timelines.getLastUpdated({
showUpdating: isLoading || isFetching,
updatedAt: dataUpdatedAt,
})}
</UtilityBarText>
<UtilitySwitch
label={i18n.RULE_EXECUTION_LOG_SHOW_METRIC_COLUMNS_SWITCH}
checked={showMetricColumns}
compressed={true}
onChange={(e) => onShowMetricColumnsCallback(e.target.checked)}
/>
</UtilityBarGroup>
</UtilityBarSection>
</UtilityBar>
<EuiBasicTable
Expand Down

0 comments on commit a27ae07

Please sign in to comment.