diff --git a/superset-frontend/plugins/plugin-chart-table/src/Styles.tsx b/superset-frontend/plugins/plugin-chart-table/src/Styles.tsx index d6993520fa..68bdc141d7 100644 --- a/superset-frontend/plugins/plugin-chart-table/src/Styles.tsx +++ b/superset-frontend/plugins/plugin-chart-table/src/Styles.tsx @@ -33,16 +33,14 @@ export default styled.div` } thead > tr > th { - padding-right: 1.4em; + padding-right: 0; position: relative; background: ${({ theme: { colors } }) => colors.grayscale.light5}; text-align: left; } th svg { color: ${({ theme: { colors } }) => colors.grayscale.light2}; - position: relative; - vertical-align: middle; - margin: 0 ${({ theme: { gridUnit } }) => gridUnit}px; + margin: ${({ theme: { gridUnit } }) => gridUnit / 2}px; } th.is-sorted svg { color: ${({ theme: { colors } }) => colors.grayscale.base}; diff --git a/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx b/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx index 29cc8199ed..85c200689e 100644 --- a/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx +++ b/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx @@ -430,8 +430,15 @@ export default function TableChart( }} /> ) : null} - {label} - +
+ {label} + +
), Footer: totals ? (