Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanSh committed Mar 5, 2025
1 parent 78c6856 commit 4e4e3e1
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ import { PreferenceFormattedDate } from '../../../common/components/formatted_da
import { FlyoutHeader } from '../../shared/components/flyout_header';
import { FlyoutTitle } from '../../shared/components/flyout_title';

const initialBadgeLimit = 3;
const maxBadgeContainerHeight = 180;

const HeaderTags = ({ tags, labels }: { tags: EntityEcs['tags']; labels: EntityEcs['labels'] }) => {
const { euiTheme } = useEuiTheme();

Expand Down Expand Up @@ -61,7 +64,13 @@ const HeaderTags = ({ tags, labels }: { tags: EntityEcs['tags']; labels: EntityE

const allBadges = [...(tagBadges || []), ...(labelBadges || [])];

return <ExpandableBadgeGroup badges={allBadges} initialBadgeLimit={3} maxHeight={180} />;
return (
<ExpandableBadgeGroup
badges={allBadges}
initialBadgeLimit={initialBadgeLimit}
maxHeight={maxBadgeContainerHeight}
/>
);
};

interface UniversalEntityFlyoutHeaderProps {
Expand Down

0 comments on commit 4e4e3e1

Please sign in to comment.