Skip to content

Commit

Permalink
fix: toast when zoom to selection
Browse files Browse the repository at this point in the history
  • Loading branch information
doouding committed Jan 2, 2025
1 parent d9efa2d commit cf28270
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { EdgelessTextBlockComponent } from '@blocksuite/affine-block-edgeless-text';
import { toast } from '@blocksuite/affine-components/toast';
import {
ConnectorElementModel,
ConnectorMode,
Expand Down Expand Up @@ -284,6 +285,8 @@ export class EdgelessPageKeyboardManager extends PageKeyboardManager {
return;
}

toast(this.rootComponent.host, 'Zoom to selection');

this.gfx.viewport.setViewportByBound(
bound,
[0.12, 0.12, 0.12, 0.12],
Expand Down

0 comments on commit cf28270

Please sign in to comment.