mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Table: Fix cell units (#90799)
This commit is contained in:
parent
06a5c970c4
commit
3b9c6da4eb
@ -42,7 +42,9 @@ export const TableCell = ({
|
|||||||
if (cellProps.style) {
|
if (cellProps.style) {
|
||||||
cellProps.style.minWidth = cellProps.style.width;
|
cellProps.style.minWidth = cellProps.style.width;
|
||||||
const justifyContent = (cell.column as any).justifyContent;
|
const justifyContent = (cell.column as any).justifyContent;
|
||||||
if (justifyContent === 'flex-end') {
|
|
||||||
|
// If cell has a unit we should avoid setting direction to rtl
|
||||||
|
if (justifyContent === 'flex-end' && !field.config.unit) {
|
||||||
// justify-content flex-end is not compatible with cellLink overflow; use direction instead
|
// justify-content flex-end is not compatible with cellLink overflow; use direction instead
|
||||||
cellProps.style.textAlign = 'right';
|
cellProps.style.textAlign = 'right';
|
||||||
cellProps.style.direction = 'rtl';
|
cellProps.style.direction = 'rtl';
|
||||||
|
Loading…
Reference in New Issue
Block a user