Skip to content

Commit

Permalink
Merge pull request #7447 from jeff-phillips-18/pod-labels-i18n
Browse files Browse the repository at this point in the history
Bug 1906766: Truncate pod ring inner labels to prevent overflow
  • Loading branch information
openshift-merge-robot committed Dec 12, 2020
2 parents 263860e + 21aa73f commit fc717a7
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -10,6 +10,7 @@ import { podColor, AllPodStatus } from '../../constants';
import './PodStatus.scss';

const ANIMATION_DURATION = 350;
const MAX_POD_TITLE_LENGTH = 14;

type PodData = {
x: string;
Expand Down Expand Up @@ -100,10 +101,10 @@ const PodStatus: React.FC<PodStatusProps> = ({
data={vData}
height={size}
width={size}
title={title}
title={_.truncate(title, { length: MAX_POD_TITLE_LENGTH })}
titleComponent={titleComponent}
subTitleComponent={subTitleComponent}
subTitle={subTitle}
subTitle={_.truncate(subTitle, { length: MAX_POD_TITLE_LENGTH })}
allowTooltip={false}
labels={() => null}
/*
Expand Down

0 comments on commit fc717a7

Please sign in to comment.