mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-02-17 17:40:31 +08:00
fix: switch the scale buttons
This commit is contained in:
parent
357b233897
commit
ece9a427b6
@ -14,13 +14,13 @@ export const EditorHeader: React.FC<{
|
||||
<Flex flex="1" />
|
||||
<Flex flex="1" align="center" justify="center">
|
||||
<Button size="sm" disabled={scale <= 50} onClick={() => setScale(scale - 10)}>
|
||||
<AddIcon />
|
||||
<MinusIcon />
|
||||
</Button>
|
||||
<Box fontSize="sm" mx="2" width={10} textAlign="center">
|
||||
{scale}%
|
||||
</Box>
|
||||
<Button size="sm" disabled={scale >= 100} onClick={() => setScale(scale + 10)}>
|
||||
<MinusIcon />
|
||||
<AddIcon />
|
||||
</Button>
|
||||
</Flex>
|
||||
<Flex flex="1" justify="end">
|
||||
|
Loading…
Reference in New Issue
Block a user