mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: add reset zoom button (#777)
* feat: add reset zoom button Add zoom reset button. Button is shown only when zoom scale is different from 1 * change reset zoom icon * always show zoom reset * fix typo
This commit is contained in:
parent
74add8661a
commit
07336bb168
4 changed files with 29 additions and 3 deletions
|
@ -379,8 +379,9 @@ const LayerUI = React.memo(
|
|||
return (
|
||||
<Stack.Col gap={1}>
|
||||
<Stack.Row gap={1} align="center">
|
||||
{actionManager.renderAction("zoomIn")}
|
||||
{actionManager.renderAction("zoomOut")}
|
||||
{actionManager.renderAction(actionZoomIn.name)}
|
||||
{actionManager.renderAction(actionZoomOut.name)}
|
||||
{actionManager.renderAction(actionResetZoom.name)}
|
||||
<div style={{ marginLeft: 4 }}>
|
||||
{(appState.zoom * 100).toFixed(0)}%
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue