From d1d5ff6f9fe7c09047fec13bf5992357ef981b4f Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Thu, 20 Jul 2023 10:00:15 -0700 Subject: [PATCH] chore: make antd table font size same as data table (#24741) --- superset-frontend/src/components/Table/VirtualTable.tsx | 5 ++++- superset-frontend/src/components/Table/index.tsx | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/superset-frontend/src/components/Table/VirtualTable.tsx b/superset-frontend/src/components/Table/VirtualTable.tsx index d8658dde60..4d4dc2a004 100644 --- a/superset-frontend/src/components/Table/VirtualTable.tsx +++ b/superset-frontend/src/components/Table/VirtualTable.tsx @@ -61,8 +61,11 @@ const StyledTable = styled(AntTable)<{ height?: number }>( .ant-pagination-item-active { border-color: ${theme.colors.primary.base}; + } + } + .ant-table.ant-table-small { + font-size: ${theme.typography.sizes.s}px; } - } `, ); diff --git a/superset-frontend/src/components/Table/index.tsx b/superset-frontend/src/components/Table/index.tsx index ef9830f49c..84ca7883f5 100644 --- a/superset-frontend/src/components/Table/index.tsx +++ b/superset-frontend/src/components/Table/index.tsx @@ -184,6 +184,10 @@ const StyledTable = styled(AntTable)<{ height?: number }>( .ant-pagination-item-active { border-color: ${theme.colors.primary.base}; } + + .ant-table.ant-table-small { + font-size: ${theme.typography.sizes.s}px; + } `, ); const StyledVirtualTable = styled(VirtualTable)(