[8.x] Fixed issue with Entity Risk Scoring Management page due to recent EUI (#195666) (#195987)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Fixed issue with Entity Risk Scoring Management page due to recent
EUI (#195666)](https://github.com/elastic/kibana/pull/195666)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Jared
Burgett","email":"147995946+jaredburgettelastic@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-11T19:22:03Z","message":"Fixed
issue with Entity Risk Scoring Management page due to recent EUI
(#195666)\n\n## Summary\r\n\r\nAfter the most recent EUI
upgrade\r\n[here](https://github.com/elastic/kibana/pull/194619), the
Security\r\nEntity Risk Scoring Management page had significant spacing
issues with\r\nregards to the page header. This PR alleviates those
issues, and also\r\nsimplifies the DOM structure for that component a
bit.\r\n\r\n##
Before\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/4d59ee6c-c2a4-4025-be68-25046d29f25d)\r\n\r\n\r\n##
After \r\n\r\n<img width=\"1727\" alt=\"Screenshot 2024-10-09 at 1 20
14 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/4117d280-231d-48aa-b36b-82e99a8a294c\">","sha":"52e7dece2d26a249f90e9d0e332d0cd35e2c5eb2","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor"],"title":"Fixed
issue with Entity Risk Scoring Management page due to recent
EUI","number":195666,"url":"https://github.com/elastic/kibana/pull/195666","mergeCommit":{"message":"Fixed
issue with Entity Risk Scoring Management page due to recent EUI
(#195666)\n\n## Summary\r\n\r\nAfter the most recent EUI
upgrade\r\n[here](https://github.com/elastic/kibana/pull/194619), the
Security\r\nEntity Risk Scoring Management page had significant spacing
issues with\r\nregards to the page header. This PR alleviates those
issues, and also\r\nsimplifies the DOM structure for that component a
bit.\r\n\r\n##
Before\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/4d59ee6c-c2a4-4025-be68-25046d29f25d)\r\n\r\n\r\n##
After \r\n\r\n<img width=\"1727\" alt=\"Screenshot 2024-10-09 at 1 20
14 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/4117d280-231d-48aa-b36b-82e99a8a294c\">","sha":"52e7dece2d26a249f90e9d0e332d0cd35e2c5eb2"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195666","number":195666,"mergeCommit":{"message":"Fixed
issue with Entity Risk Scoring Management page due to recent EUI
(#195666)\n\n## Summary\r\n\r\nAfter the most recent EUI
upgrade\r\n[here](https://github.com/elastic/kibana/pull/194619), the
Security\r\nEntity Risk Scoring Management page had significant spacing
issues with\r\nregards to the page header. This PR alleviates those
issues, and also\r\nsimplifies the DOM structure for that component a
bit.\r\n\r\n##
Before\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/4d59ee6c-c2a4-4025-be68-25046d29f25d)\r\n\r\n\r\n##
After \r\n\r\n<img width=\"1727\" alt=\"Screenshot 2024-10-09 at 1 20
14 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/4117d280-231d-48aa-b36b-82e99a8a294c\">","sha":"52e7dece2d26a249f90e9d0e332d0cd35e2c5eb2"}}]}]
BACKPORT-->

Co-authored-by: Jared Burgett <147995946+jaredburgettelastic@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2024-10-12 08:10:46 +11:00 committed by GitHub
parent 18d03f264d
commit df830eec60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,16 +20,16 @@ export const EntityAnalyticsManagementPage = () => {
return (
<>
<RiskEnginePrivilegesCallOut privileges={privileges} />
<EuiFlexGroup gutterSize="s" alignItems="baseline">
<EuiFlexItem grow={false}>
<EuiPageHeader
data-test-subj="entityAnalyticsManagementPageTitle"
pageTitle={ENTITY_ANALYTICS_RISK_SCORE}
/>
</EuiFlexItem>
<EuiFlexItem grow={false} />
<EuiBetaBadge label={BETA} size="s" />
</EuiFlexGroup>
<EuiPageHeader
pageTitle={
<EuiFlexGroup>
<EuiFlexItem data-test-subj="entityAnalyticsManagementPageTitle" grow={false}>
{ENTITY_ANALYTICS_RISK_SCORE}
</EuiFlexItem>
<EuiBetaBadge label={BETA} size="s" />
</EuiFlexGroup>
}
/>
<EuiSpacer size="l" />
<EuiFlexGroup gutterSize="xl">
<EuiFlexItem grow={2}>