diff --git a/public/assets/svgs/Group 25403.svg b/public/assets/svgs/Group 25403.svg deleted file mode 100644 index b2d1937..0000000 --- a/public/assets/svgs/Group 25403.svg +++ /dev/null @@ -1,49 +0,0 @@ - diff --git a/src/components/Canvas/Canvas.jsx b/src/components/Canvas/Canvas.jsx index d30388f..a92af36 100644 --- a/src/components/Canvas/Canvas.jsx +++ b/src/components/Canvas/Canvas.jsx @@ -17,15 +17,18 @@ export default function Canvas() { const handleZoom = useCallback( (newZoom) => { - const zoom = Math.min(Math.max(newZoom, 0), 100); + const zoom = Math.min(Math.max(newZoom, 50), 100); // Prevent zoom from going below 10 setZoomLevel(zoom); if (canvasRef.current && canvas) { const scale = zoom / 100; - // Update canvas dimensions - const newWidth = canvasRef.current.offsetWidth * scale; - const newHeight = canvasRef.current.offsetHeight * scale; + // Ensure minimum dimensions + const minWidth = 50; // Set a reasonable minimum width + const minHeight = 50; // Set a reasonable minimum height + + const newWidth = Math.max(canvasRef.current.offsetWidth * scale, minWidth); + const newHeight = Math.max(canvasRef.current.offsetHeight * scale, minHeight); canvas.setWidth(newWidth); canvas.setHeight(newHeight); @@ -238,7 +241,7 @@ export default function Canvas() { return (
{project?.name}
-{project?.description}
-{project?.name}
+{project?.description}
+