From fce8ac27f0890c3372eb6874f69de37c3a17a0e1 Mon Sep 17 00:00:00 2001 From: Geido <60598000+geido@users.noreply.github.com> Date: Fri, 28 May 2021 09:32:51 +0300 Subject: [PATCH] Add style (#14839) --- .../src/explore/components/ControlPanelsContainer.tsx | 7 +++++++ .../src/explore/components/controls/SelectControl.jsx | 4 ---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/superset-frontend/src/explore/components/ControlPanelsContainer.tsx b/superset-frontend/src/explore/components/ControlPanelsContainer.tsx index 161407ab80..2fd44df9b8 100644 --- a/superset-frontend/src/explore/components/ControlPanelsContainer.tsx +++ b/superset-frontend/src/explore/components/ControlPanelsContainer.tsx @@ -92,6 +92,13 @@ const Styles = styled.div` .Select__menu { max-width: 100%; } + .type-label { + margin-right: ${({ theme }) => theme.gridUnit * 3}px; + width: ${({ theme }) => theme.gridUnit * 7}px; + display: inline-block; + text-align: center; + font-weight: ${({ theme }) => theme.typography.weights.bold}; + } `; const ControlPanelsTabs = styled(Tabs)` diff --git a/superset-frontend/src/explore/components/controls/SelectControl.jsx b/superset-frontend/src/explore/components/controls/SelectControl.jsx index 458792f8f3..6bfcecec78 100644 --- a/superset-frontend/src/explore/components/controls/SelectControl.jsx +++ b/superset-frontend/src/explore/components/controls/SelectControl.jsx @@ -298,10 +298,6 @@ export default class SelectControl extends React.PureComponent { css={theme => css` .type-label { margin-right: ${theme.gridUnit * 2}px; - width: ${theme.gridUnit * 7}px; - display: inline-block; - text-align: center; - font-weight: ${theme.typography.weights.bold}; } `} >