diff --git a/superset-frontend/src/dashboard/components/gridComponents/Tabs.jsx b/superset-frontend/src/dashboard/components/gridComponents/Tabs.jsx index aeaa1154ea7..13c514379af 100644 --- a/superset-frontend/src/dashboard/components/gridComponents/Tabs.jsx +++ b/superset-frontend/src/dashboard/components/gridComponents/Tabs.jsx @@ -96,7 +96,6 @@ const StyledTabsContainer = styled.div` .ant-tabs-content-holder { overflow: visible; - padding-top: ${theme.sizeUnit * 4}px; } } diff --git a/superset-frontend/src/explore/components/controls/VizTypeControl/FastVizSwitcher.tsx b/superset-frontend/src/explore/components/controls/VizTypeControl/FastVizSwitcher.tsx index 96d54dab295..cd7203350c2 100644 --- a/superset-frontend/src/explore/components/controls/VizTypeControl/FastVizSwitcher.tsx +++ b/superset-frontend/src/explore/components/controls/VizTypeControl/FastVizSwitcher.tsx @@ -19,7 +19,7 @@ import { memo, useMemo } from 'react'; import { useSelector } from 'react-redux'; import { css, SupersetTheme } from '@superset-ui/core'; -import { Icons } from '@superset-ui/core/components/Icons'; +import { Flex, Icons } from '@superset-ui/core/components'; import { getChartKey } from 'src/explore/exploreUtils'; import { ExplorePageState } from 'src/explore/types'; import { FastVizSwitcherProps } from './types'; @@ -79,14 +79,7 @@ export const FastVizSwitcher = memo( }, [currentSelection, currentViz]); return ( -
css` - display: flex; - justify-content: space-between; - column-gap: ${theme.sizeUnit}px; - `} - data-test="fast-viz-switcher" - > + {vizTiles.map(vizMeta => ( ))} -
+ ); }, ); diff --git a/superset-frontend/src/explore/components/controls/VizTypeControl/VizTile.tsx b/superset-frontend/src/explore/components/controls/VizTypeControl/VizTile.tsx index 5d7e65e8dad..09bf2c755e2 100644 --- a/superset-frontend/src/explore/components/controls/VizTypeControl/VizTile.tsx +++ b/superset-frontend/src/explore/components/controls/VizTypeControl/VizTile.tsx @@ -124,7 +124,7 @@ export const VizTile = ({ > {vizMeta.icon} @@ -136,6 +136,7 @@ export const VizTile = ({ font-size: ${theme.fontSizeSM}px; min-width: 0; padding-right: ${theme.sizeUnit}px; + line-height: 1; `} ref={chartNameRef} >