Skip to content
Snippets Groups Projects
Commit ed65a201 authored by Kyle Doherty's avatar Kyle Doherty Committed by GitHub
Browse files

prevent scalar values from overflowing. fixes #3342 (#4016)

parent fd81c5f9
Branches
Tags
No related merge requests found
......@@ -124,7 +124,12 @@ export default class Scalar extends Component {
return (
<div className={cx(className, styles.Scalar, styles[isSmall ? "small" : "large"])}>
<div className="Card-title absolute top right p1 px2">{actionButtons}</div>
<Ellipsified className={cx(styles.Value, 'ScalarValue', 'fullscreen-normal-text', 'fullscreen-night-text')} tooltip={fullScalarValue} alwaysShowTooltip={fullScalarValue !== compactScalarValue}>
<Ellipsified
className={cx(styles.Value, 'ScalarValue', 'fullscreen-normal-text', 'fullscreen-night-text')}
tooltip={fullScalarValue}
alwaysShowTooltip={fullScalarValue !== compactScalarValue}
style={{maxWidth: '100%'}}
>
{compactScalarValue}
</Ellipsified>
<Ellipsified className={styles.Title} tooltip={card.name}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment