From d3c6e2b203f87d210cdbf346198d960ac00e72ff Mon Sep 17 00:00:00 2001 From: Drew Slobodnjak <60050885+drew08t@users.noreply.github.com> Date: Fri, 16 Aug 2024 15:42:20 -0700 Subject: [PATCH] Table: Avoid rtl when using datalinks with units (#92038) --- packages/grafana-ui/src/components/Table/TableCell.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grafana-ui/src/components/Table/TableCell.tsx b/packages/grafana-ui/src/components/Table/TableCell.tsx index b99ad697a87..ef45bd98400 100644 --- a/packages/grafana-ui/src/components/Table/TableCell.tsx +++ b/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';