From d57e49281070ca39aec8f0cb25699a8785260b30 Mon Sep 17 00:00:00 2001 From: Alex TYRODE Date: Mon, 28 Apr 2025 12:23:46 +0000 Subject: [PATCH 1/2] fix: update dimensions for embeddable elements in default_canvas.json - Increased width from 420 to 460 and height from 320 to 380 for improved layout of embeddable elements. --- src/backend/default_canvas.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/default_canvas.json b/src/backend/default_canvas.json index e902312..10f385c 100644 --- a/src/backend/default_canvas.json +++ b/src/backend/default_canvas.json @@ -2154,8 +2154,8 @@ "type": "embeddable", "angle": 0, "index": "b0q", - "width": 420, - "height": 320, + "width": 460, + "height": 380, "locked": false, "frameId": null, "opacity": 100, From ebe57907cd9dc0e58a448184548b3f845fa1f6bc Mon Sep 17 00:00:00 2001 From: Alex TYRODE Date: Mon, 28 Apr 2025 12:23:52 +0000 Subject: [PATCH 2/2] fix: adjust minimum height for ActionButtonGrid in Dashboard component - Updated the minimum required height from 240 to 200 to ensure proper rendering of the ActionButtonGrid. --- src/frontend/src/pad/containers/Dashboard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/pad/containers/Dashboard.tsx b/src/frontend/src/pad/containers/Dashboard.tsx index 5f3c6b3..1c03dd4 100644 --- a/src/frontend/src/pad/containers/Dashboard.tsx +++ b/src/frontend/src/pad/containers/Dashboard.tsx @@ -93,7 +93,7 @@ export const Dashboard: React.FC = ({ // Set up resize observer to check if there's enough space useEffect(() => { // Minimum height required for the ActionButtonGrid to render properly - const MIN_REQUIRED_HEIGHT = 240; // Adjust this value based on your design + const MIN_REQUIRED_HEIGHT = 200; // Adjust this value based on your design const checkSize = () => { if (dashboardRef.current) {