fix: Removed fixed width constraint from Save button (#29686)
This commit is contained in:
parent
d497dcad41
commit
cb23d6f1a8
|
|
@ -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>
|
||||
) : (
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@ const StyledDropdownButton = styled.div`
|
|||
border-radius: ${({ theme }) =>
|
||||
`${theme.gridUnit}px 0 0 ${theme.gridUnit}px`};
|
||||
margin: 0;
|
||||
width: 120px;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
|
|
|
|||
Loading…
Reference in New Issue