Skip to content

Commit

Permalink
Set DropdownButton width to auto
Browse files Browse the repository at this point in the history
  • Loading branch information
goldjee committed Aug 3, 2024
1 parent 3de2b7c commit 8cbfdce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ const SaveDatasetActionButton = ({
DropdownButton as FC<DropdownButtonProps>,
)`
&.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};
Expand All @@ -58,11 +55,7 @@ const SaveDatasetActionButton = ({
`;

return !overlayMenu ? (
<Button
onClick={() => setShowSave(true)}
buttonStyle="primary"
css={{ width: theme.gridUnit * 25 }}
>
<Button onClick={() => setShowSave(true)} buttonStyle="primary">
{t('Save')}
</Button>
) : (
Expand Down
1 change: 0 additions & 1 deletion superset-frontend/src/components/DropdownButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const StyledDropdownButton = styled.div`
border-radius: ${({ theme }) =>
`${theme.gridUnit}px 0 0 ${theme.gridUnit}px`};
margin: 0;
width: 120px;
}
&:disabled {
Expand Down

0 comments on commit 8cbfdce

Please sign in to comment.