Skip to content

Commit

Permalink
run descriptive name -> GeneratedText too
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Kimmel committed Aug 26, 2020
1 parent 9efb55a commit 0be1d08
Showing 1 changed file with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ const StyledDescriptionList = memo(styled(EuiDescriptionList)`
}
`);

// Also prevents horizontal scrollbars on long descriptive names
const StyledDescriptiveName = memo(styled(EuiText)`
padding-right: 1em;
overflow-wrap: break-word;
`);

// Styling subtitles, per UX review:
const StyledFlexTitle = memo(styled('h3')`
display: flex;
Expand Down Expand Up @@ -298,13 +304,15 @@ export const RelatedEventDetail = memo(function RelatedEventDetail({
</StyledTime>
</EuiText>
<EuiSpacer size="m" />
<EuiText>
<FormattedMessage
id="xpack.securitySolution.endpoint.resolver.panel.relatedEventDetail.eventDescriptiveNameInTitle"
values={{ subject, descriptor }}
defaultMessage="{descriptor} {subject}"
/>
</EuiText>
<StyledDescriptiveName>
<GeneratedText>
<FormattedMessage
id="xpack.securitySolution.endpoint.resolver.panel.relatedEventDetail.eventDescriptiveNameInTitle"
values={{ subject, descriptor }}
defaultMessage="{descriptor} {subject}"
/>
</GeneratedText>
</StyledDescriptiveName>
<EuiSpacer size="l" />
{sections.map(({ sectionTitle, entries }, index) => {
const displayEntries = entriesForDisplay(entries);
Expand Down

0 comments on commit 0be1d08

Please sign in to comment.