Skip to content

Commit

Permalink
[7.x] [Security Solution][Resolver] Fix text overflow in panel breadc…
Browse files Browse the repository at this point in the history
…rumb (#86905) (#87186)

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
michaelolo24 and kibanamachine authored Jan 4, 2021
1 parent a146dd6 commit 233f114
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { EuiBreadcrumb, EuiBetaBadge } from '@elastic/eui';
import React, { memo, useMemo } from 'react';
import { BetaHeader, ThemedBreadcrumbs } from './styles';
import { useColors } from '../use_colors';
import { GeneratedText } from '../generated_text';

/**
* Breadcrumb menu
Expand All @@ -20,6 +21,7 @@ export const Breadcrumbs = memo(function ({ breadcrumbs }: { breadcrumbs: EuiBre
const crumbsWithLastSubject: EuiBreadcrumb[] = useMemo(() => {
const lastcrumb = breadcrumbs.slice(-1).map((crumb) => {
crumb['data-test-subj'] = 'resolver:breadcrumbs:last';
crumb.text = <GeneratedText>{crumb.text}</GeneratedText>;
return crumb;
});
return [...breadcrumbs.slice(0, -1), ...lastcrumb];
Expand Down

0 comments on commit 233f114

Please sign in to comment.