Skip to content

Commit

Permalink
[Security Solution][Resolver] Fix text overflow in panel breadcrumb (e…
Browse files Browse the repository at this point in the history
…lastic#86905)

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
michaelolo24 and kibanamachine committed Jan 4, 2021
1 parent 43a0cfd commit fdd6f43
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 fdd6f43

Please sign in to comment.