From 8cbfdcea6aa523483a9509bb1d238204ac3d36d2 Mon Sep 17 00:00:00 2001 From: Daniel <7242338+goldjee@users.noreply.github.com> Date: Sun, 4 Aug 2024 01:17:09 +0400 Subject: [PATCH] Set DropdownButton width to auto --- .../SqlLab/components/SaveDatasetActionButton/index.tsx | 9 +-------- .../src/components/DropdownButton/index.tsx | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/superset-frontend/src/SqlLab/components/SaveDatasetActionButton/index.tsx b/superset-frontend/src/SqlLab/components/SaveDatasetActionButton/index.tsx index 57d721503d127..2acd7665bfb15 100644 --- a/superset-frontend/src/SqlLab/components/SaveDatasetActionButton/index.tsx +++ b/superset-frontend/src/SqlLab/components/SaveDatasetActionButton/index.tsx @@ -38,9 +38,6 @@ const SaveDatasetActionButton = ({ DropdownButton as FC, )` &.ant-dropdown-button button.ant-btn.ant-btn-default { - &:first-of-type { - width: ${theme.gridUnit * 16}px; - } font-weight: ${theme.gridUnit * 150}; background-color: ${theme.colors.primary.light4}; color: ${theme.colors.primary.dark1}; @@ -58,11 +55,7 @@ const SaveDatasetActionButton = ({ `; return !overlayMenu ? ( - ) : ( diff --git a/superset-frontend/src/components/DropdownButton/index.tsx b/superset-frontend/src/components/DropdownButton/index.tsx index 9bf26645c4c59..7e9657b530886 100644 --- a/superset-frontend/src/components/DropdownButton/index.tsx +++ b/superset-frontend/src/components/DropdownButton/index.tsx @@ -36,7 +36,6 @@ const StyledDropdownButton = styled.div` border-radius: ${({ theme }) => `${theme.gridUnit}px 0 0 ${theme.gridUnit}px`}; margin: 0; - width: 120px; } &:disabled {