Skip to content

Commit

Permalink
fix: vertical alignment doesn't support metric displayed as number
Browse files Browse the repository at this point in the history
JIRA: F1-237
  • Loading branch information
hackerstanislav committed Apr 5, 2024
1 parent 75c4c88 commit de70610
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,20 @@ function MeasureCellRenderer({
);
}

return <div>{measureDataPoints[0]?.formattedValue}</div>;
const verticalAlign = getVerticalAlign(config);
const textWrapping = getTextWrapping(config);

return (
<div
className={cx(
"gd-repeater-cell-wrapper",
`gd-vertical-align-${verticalAlign}`,
`gd-text-wrapping-${textWrapping}`,
)}
>
{measureDataPoints[0]?.formattedValue}
</div>
);
}

interface IAttributeColumnData {
Expand Down

0 comments on commit de70610

Please sign in to comment.