Skip to content
Merged
19 changes: 10 additions & 9 deletions code/core/src/manager/components/preview/tools/zoom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,16 @@ export const Zoom = memo<{
</ActionList.Button>
}
after={
<ActionList.Button
size="small"
padding="small"
disabled={value === INITIAL_ZOOM_LEVEL}
onClick={() => zoomTo(INITIAL_ZOOM_LEVEL)}
ariaLabel="Reset zoom"
>
<UndoIcon />
</ActionList.Button>
value !== INITIAL_ZOOM_LEVEL && (
<ActionList.Button
size="small"
padding="small"
onClick={() => zoomTo(INITIAL_ZOOM_LEVEL)}
ariaLabel="Reset zoom"
>
<UndoIcon />
</ActionList.Button>
)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
}
value={`${Math.round(value * 100)}%`}
minValue={1}
Expand Down