Table: Avoid rtl when using datalinks with units (#92038)

pull/92042/head
Drew Slobodnjak 9 months ago committed by GitHub
parent 028e8ac59e
commit d3c6e2b203
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/grafana-ui/src/components/Table/TableCell.tsx

@ -43,7 +43,7 @@ export const TableCell = ({
cellProps.style.minWidth = cellProps.style.width;
const justifyContent = (cell.column as any).justifyContent;
if (justifyContent === 'flex-end') {
if (justifyContent === 'flex-end' && !field.config.unit) {
// justify-content flex-end is not compatible with cellLink overflow; use direction instead
cellProps.style.textAlign = 'right';
cellProps.style.direction = 'rtl';

Loading…
Cancel
Save