This is an automated email from the ASF dual-hosted git repository. arivero pushed a commit to branch table-time-comparison in repository https://gitbox.apache.org/repos/asf/superset.git
commit 381e9b755eadc45d0c25e233205290173263ca54 Author: Antonio Rivero <[email protected]> AuthorDate: Mon Mar 4 18:28:35 2024 +0100 Table with Time Comparison: - Align text of comparison metrics to the left --- superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx b/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx index a41001a446..ab75914c97 100644 --- a/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx +++ b/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx @@ -362,11 +362,10 @@ export default function TableChart<D extends DataRecord = DataRecord>( const getSharedStyle = (column: DataColumnMeta): CSSProperties => { const { isNumeric, config = {} } = column; - const textAlign = config.horizontalAlign - ? config.horizontalAlign - : isNumeric - ? 'right' - : 'left'; + const textAlign = + config.horizontalAlign || + (isNumeric && !enableTimeComparison ? 'right' : 'left'); + return { textAlign, };
