From e6531d0ecd80d4679b6ec24ada6a675401330e2f Mon Sep 17 00:00:00 2001 From: Drew Slobodnjak <60050885+drew08t@users.noreply.github.com> Date: Wed, 31 Jul 2024 15:28:24 -0700 Subject: [PATCH] Table: Fix negative numbers during rtl styling (#91347) * Table: fix negative numbers during rtl styling * revert field config unit check as it is no longer needed with fix implemented in this PR --------- Co-authored-by: nmarrs --- packages/grafana-ui/src/components/Table/TableCell.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/grafana-ui/src/components/Table/TableCell.tsx b/packages/grafana-ui/src/components/Table/TableCell.tsx index 080c41b8a68..b99ad697a87 100644 --- a/packages/grafana-ui/src/components/Table/TableCell.tsx +++ b/packages/grafana-ui/src/components/Table/TableCell.tsx @@ -43,11 +43,11 @@ export const TableCell = ({ cellProps.style.minWidth = cellProps.style.width; const justifyContent = (cell.column as any).justifyContent; - // If cell has a unit we should avoid setting direction to rtl - if (justifyContent === 'flex-end' && !field.config.unit) { + if (justifyContent === 'flex-end') { // justify-content flex-end is not compatible with cellLink overflow; use direction instead cellProps.style.textAlign = 'right'; cellProps.style.direction = 'rtl'; + cellProps.style.unicodeBidi = 'plaintext'; } else { cellProps.style.justifyContent = justifyContent; }