fix: Removed fixed width constraint from Save button (#29686)

This commit is contained in:
Daniel 2024-08-23 19:22:18 +03:00 committed by GitHub
parent d497dcad41
commit cb23d6f1a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 9 deletions

View File

@ -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};
@ -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>
) : (

View File

@ -35,7 +35,6 @@ const StyledDropdownButton = styled.div`
border-radius: ${({ theme }) =>
`${theme.gridUnit}px 0 0 ${theme.gridUnit}px`};
margin: 0;
width: 120px;
}
&:disabled {