Skip to content

Commit

Permalink
chore: make antd table font size same as data table (#24741)
Browse files Browse the repository at this point in the history
(cherry picked from commit d1d5ff6)
  • Loading branch information
mistercrunch authored and michael-s-molina committed Jul 24, 2023
1 parent cc7983c commit aa5f0b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion superset-frontend/src/components/Table/VirtualTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
`,
);

Expand Down
4 changes: 4 additions & 0 deletions superset-frontend/src/components/Table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)(
Expand Down

0 comments on commit aa5f0b1

Please sign in to comment.