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>,
|
DropdownButton as FC<DropdownButtonProps>,
|
||||||
)`
|
)`
|
||||||
&.ant-dropdown-button button.ant-btn.ant-btn-default {
|
&.ant-dropdown-button button.ant-btn.ant-btn-default {
|
||||||
&:first-of-type {
|
|
||||||
width: ${theme.gridUnit * 16}px;
|
|
||||||
}
|
|
||||||
font-weight: ${theme.gridUnit * 150};
|
font-weight: ${theme.gridUnit * 150};
|
||||||
background-color: ${theme.colors.primary.light4};
|
background-color: ${theme.colors.primary.light4};
|
||||||
color: ${theme.colors.primary.dark1};
|
color: ${theme.colors.primary.dark1};
|
||||||
|
|
@ -58,11 +55,7 @@ const SaveDatasetActionButton = ({
|
||||||
`;
|
`;
|
||||||
|
|
||||||
return !overlayMenu ? (
|
return !overlayMenu ? (
|
||||||
<Button
|
<Button onClick={() => setShowSave(true)} buttonStyle="primary">
|
||||||
onClick={() => setShowSave(true)}
|
|
||||||
buttonStyle="primary"
|
|
||||||
css={{ width: theme.gridUnit * 25 }}
|
|
||||||
>
|
|
||||||
{t('Save')}
|
{t('Save')}
|
||||||
</Button>
|
</Button>
|
||||||
) : (
|
) : (
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,6 @@ const StyledDropdownButton = styled.div`
|
||||||
border-radius: ${({ theme }) =>
|
border-radius: ${({ theme }) =>
|
||||||
`${theme.gridUnit}px 0 0 ${theme.gridUnit}px`};
|
`${theme.gridUnit}px 0 0 ${theme.gridUnit}px`};
|
||||||
margin: 0;
|
margin: 0;
|
||||||
width: 120px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&:disabled {
|
&:disabled {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue