You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2023/07/20 17:00:22 UTC

[superset] branch master updated: chore: make antd table font size same as data table (#24741)

This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new d1d5ff6f9f chore: make antd table font size same as data table (#24741)
d1d5ff6f9f is described below

commit d1d5ff6f9fe7c09047fec13bf5992357ef981b4f
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Thu Jul 20 10:00:15 2023 -0700

    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)(