diff --git a/x-pack/plugins/security_solution/public/resolver/view/graph_controls.tsx b/x-pack/plugins/security_solution/public/resolver/view/graph_controls.tsx index 2da08344a70a0..ebd09f7839fb4 100644 --- a/x-pack/plugins/security_solution/public/resolver/view/graph_controls.tsx +++ b/x-pack/plugins/security_solution/public/resolver/view/graph_controls.tsx @@ -59,14 +59,14 @@ const StyledGraphControlsColumn = styled.div` } `; +const COLUMN_WIDTH = ['fit-content(10em)', 'auto']; + const StyledEuiDescriptionListTitle = styled(EuiDescriptionListTitle)` text-transform: uppercase; - max-width: 25%; `; const StyledEuiDescriptionListDescription = styled(EuiDescriptionListDescription)` - min-width: 75%; - width: 75%; + lineheight: '2.2em'; // lineHeight to align center vertically `; const StyledEuiButtonIcon = styled(EuiButtonIcon)` @@ -386,52 +386,35 @@ const SchemaInformation = ({ <> - + {i18n.translate('xpack.securitySolution.resolver.graphControls.schemaSource', { defaultMessage: 'source', })} - + {sourceAndSchema?.dataSource ?? unknownSchemaValue} - - + + {i18n.translate('xpack.securitySolution.resolver.graphControls.schemaID', { defaultMessage: 'id', })} - + {sourceAndSchema?.schema.id ?? unknownSchemaValue} - - + + {i18n.translate('xpack.securitySolution.resolver.graphControls.schemaEdge', { defaultMessage: 'edge', })} - + {sourceAndSchema?.schema.parent ?? unknownSchemaValue} - + @@ -493,14 +476,12 @@ const NodeLegend = ({ <> - + - + {i18n.translate( 'xpack.securitySolution.resolver.graphControls.runningProcessCube', @@ -521,10 +499,7 @@ const NodeLegend = ({ )} - + - + {i18n.translate( 'xpack.securitySolution.resolver.graphControls.terminatedProcessCube', @@ -545,10 +517,7 @@ const NodeLegend = ({ )} - + - + {i18n.translate( 'xpack.securitySolution.resolver.graphControls.currentlyLoadingCube', @@ -569,10 +535,7 @@ const NodeLegend = ({ )} - + - + {i18n.translate('xpack.securitySolution.resolver.graphControls.errorCube', { defaultMessage: 'Error Process', diff --git a/x-pack/plugins/security_solution/public/resolver/view/panels/event_detail.tsx b/x-pack/plugins/security_solution/public/resolver/view/panels/event_detail.tsx index 64c94f76f86a1..07ef565865d82 100644 --- a/x-pack/plugins/security_solution/public/resolver/view/panels/event_detail.tsx +++ b/x-pack/plugins/security_solution/public/resolver/view/panels/event_detail.tsx @@ -11,18 +11,11 @@ import React, { memo, useMemo, Fragment } from 'react'; import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import type { EuiBreadcrumb } from '@elastic/eui'; -import { - EuiSpacer, - EuiText, - EuiDescriptionList, - EuiHorizontalRule, - EuiTextColor, - EuiTitle, -} from '@elastic/eui'; +import { EuiSpacer, EuiText, EuiHorizontalRule, EuiTextColor, EuiTitle } from '@elastic/eui'; import styled from 'styled-components'; import { useSelector } from 'react-redux'; import { StyledPanel } from '../styles'; -import { BoldCode, StyledTime } from './styles'; +import { StyledDescriptionList, BoldCode, StyledTime } from './styles'; import { GeneratedText } from '../generated_text'; import { CopyablePanelField } from './copyable_panel_field'; import { Breadcrumbs } from './breadcrumbs'; @@ -329,16 +322,6 @@ function EventDetailBreadcrumbs({ return ; } -const StyledDescriptionList = memo(styled(EuiDescriptionList)` - .euiDescriptionList__title { - word-break: normal; - } - .euiDescriptionList__title, - .euiDescriptionList__description { - overflow-wrap: break-word; - } -`); - // Also prevents horizontal scrollbars on long descriptive names const StyledDescriptiveName = memo(styled(EuiText)` padding-right: 1em; diff --git a/x-pack/plugins/security_solution/public/resolver/view/panels/node_detail.tsx b/x-pack/plugins/security_solution/public/resolver/view/panels/node_detail.tsx index ab762ec8a4542..c258860e4f35c 100644 --- a/x-pack/plugins/security_solution/public/resolver/view/panels/node_detail.tsx +++ b/x-pack/plugins/security_solution/public/resolver/view/panels/node_detail.tsx @@ -35,6 +35,8 @@ const StyledCubeForProcess = styled(CubeForProcess)` position: relative; `; +const COLUMN_WIDTH = ['fit-content(10em)', 'auto']; + const nodeDetailError = i18n.translate('xpack.securitySolution.resolver.panel.nodeDetail.Error', { defaultMessage: 'Node details were unable to be retrieved', }); @@ -249,6 +251,7 @@ const NodeDetailView = memo(function ({