Skip to content

Commit 18207ba

Browse files
add toast when zoom to fit
1 parent 2d09798 commit 18207ba

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

editor-packages/editor-canvas/canvas/canvas.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
MenuItem,
3636
} from "@editor-ui/context-menu";
3737
import styled from "@emotion/styled";
38+
import toast from "react-hot-toast";
3839

3940
interface CanvasState {
4041
pageid: string;
@@ -565,6 +566,7 @@ export function Canvas({
565566
// const newoffset = zoomToFit(viewbound, offset, zoom, 1);
566567
// setOffset(newoffset);
567568
_canvas_state_store.saveLastTransform(cvtransform);
569+
toast("Zoom to 100%");
568570
}}
569571
onZooming={onZooming}
570572
onZoomingStart={() => {

0 commit comments

Comments
 (0)