TableNG: Fix some regressions after text wrap refactor (#103663)

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
This commit is contained in:
Alex Spencer
2025-04-09 10:23:47 -05:00
committed by GitHub
co-authored by Leon Sorokin
parent 4849f87e82
commit b59a4fc5b8
2 changed files with 2 additions and 1 deletions
@@ -237,6 +237,7 @@ const getStyles = (theme: GrafanaTheme2, isRightAligned: boolean, color: CellCol
// TODO: follow-up on this: change styles on hover on table row level // TODO: follow-up on this: change styles on hover on table row level
background: color.bgColor || 'none', background: color.bgColor || 'none',
color: color.textColor, color: color.textColor,
'&:hover': { background: color.bgHoverColor },
}), }),
cellActions: css({ cellActions: css({
display: 'flex', display: 'flex',
@@ -860,7 +860,7 @@ export function mapFrameToDataGrid({
showTypeIcons={showTypeIcons} showTypeIcons={showTypeIcons}
/> />
), ),
width: fieldTableOptions.width ?? COLUMN.DEFAULT_WIDTH, width: fieldTableOptions.width,
minWidth: fieldTableOptions.minWidth || COLUMN.DEFAULT_WIDTH, minWidth: fieldTableOptions.minWidth || COLUMN.DEFAULT_WIDTH,
}); });
}); });