From b6cfc2839c1bb7e92fdb1dedfac485449abc5a04 Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Sat, 17 Aug 2024 02:00:14 +0300 Subject: [PATCH] [v11.2.x] Table: Avoid rtl when using datalinks with units (#92039) Table: Avoid rtl when using datalinks with units (#92038) (cherry picked from commit d3c6e2b203f87d210cdbf346198d960ac00e72ff) Co-authored-by: Drew Slobodnjak <60050885+drew08t@users.noreply.github.com> --- 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';