From b7a4d04b776869f78a0b9305860c5d77c8a59b1f Mon Sep 17 00:00:00 2001 From: Vighnesh Tule <153217361+vighneshtule@users.noreply.github.com> Date: Sun, 4 Jan 2026 21:15:53 +0530 Subject: [PATCH 1/2] fix(table-chart): add 20px default padding to match other charts --- superset-frontend/plugins/plugin-chart-table/src/Styles.tsx | 1 + .../plugins/plugin-chart-table/src/TableChart.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/superset-frontend/plugins/plugin-chart-table/src/Styles.tsx b/superset-frontend/plugins/plugin-chart-table/src/Styles.tsx index 4d7a61af6f59..aa046e3bb700 100644 --- a/superset-frontend/plugins/plugin-chart-table/src/Styles.tsx +++ b/superset-frontend/plugins/plugin-chart-table/src/Styles.tsx @@ -21,6 +21,7 @@ import { css, styled } from '@apache-superset/core/ui'; export default styled.div` ${({ theme }) => css` /* Base table styles */ + padding: ${theme.sizeUnit * 5}px; table { width: 100%; min-width: auto; diff --git a/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx b/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx index 964ab72d4739..a72b6d79b390 100644 --- a/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx +++ b/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx @@ -1410,8 +1410,8 @@ export default function TableChart( pageSize={pageSize} serverPaginationData={serverPaginationData} pageSizeOptions={pageSizeOptions} - width={widthFromState} - height={heightFromState} + width={widthFromState - theme.sizeUnit * 10} + height={heightFromState - theme.sizeUnit * 10} serverPagination={serverPagination} onServerPaginationChange={handleServerPaginationChange} onColumnOrderChange={() => setColumnOrderToggle(!columnOrderToggle)} From c9885ec84cf60d99e799712fc87fe8f3293053e1 Mon Sep 17 00:00:00 2001 From: Vighnesh Tule <153217361+vighneshtule@users.noreply.github.com> Date: Sun, 4 Jan 2026 23:01:13 +0530 Subject: [PATCH 2/2] Update superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx Co-authored-by: codeant-ai-for-open-source[bot] <244253245+codeant-ai-for-open-source[bot]@users.noreply.github.com> --- .../plugins/plugin-chart-table/src/TableChart.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx b/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx index a72b6d79b390..f469fe9aa49f 100644 --- a/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx +++ b/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx @@ -1410,8 +1410,8 @@ export default function TableChart( pageSize={pageSize} serverPaginationData={serverPaginationData} pageSizeOptions={pageSizeOptions} - width={widthFromState - theme.sizeUnit * 10} - height={heightFromState - theme.sizeUnit * 10} + width={Math.max(0, widthFromState - theme.sizeUnit * 10)} + height={Math.max(0, heightFromState - theme.sizeUnit * 10)} serverPagination={serverPagination} onServerPaginationChange={handleServerPaginationChange} onColumnOrderChange={() => setColumnOrderToggle(!columnOrderToggle)}