diff --git a/frontend/src/lib/components/blockshell/BlockShell.svelte b/frontend/src/lib/components/blockshell/BlockShell.svelte index d8ff2f9..c6f60a9 100644 --- a/frontend/src/lib/components/blockshell/BlockShell.svelte +++ b/frontend/src/lib/components/blockshell/BlockShell.svelte @@ -73,7 +73,6 @@ let dropFeedback = $state(''); let isResizing = $state(false); let isDragging = $state(false); - let contentZoom = $state(1.0); let containerEl: HTMLDivElement | undefined = $state(); let containerWidth = $state(0); @@ -426,14 +425,14 @@
{ if (e.ctrlKey || e.metaKey) { e.preventDefault(); e.stopPropagation(); const factor = e.deltaY > 0 ? 0.95 : 1.05; - contentZoom = Math.min(3, Math.max(0.3, contentZoom * factor)); + const newW = Math.round(clampedWidth * factor); + const newH = Math.round(clampedHeight * factor); + onResize?.(newW, newH); } }} >