Skip to content

Commit 55d507f

Browse files
authored
style: default canvas & dashboard adjustments (#46)
* 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. * 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.
1 parent 5a4c38f commit 55d507f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/backend/default_canvas.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2154,8 +2154,8 @@
21542154
"type": "embeddable",
21552155
"angle": 0,
21562156
"index": "b0q",
2157-
"width": 420,
2158-
"height": 320,
2157+
"width": 460,
2158+
"height": 380,
21592159
"locked": false,
21602160
"frameId": null,
21612161
"opacity": 100,

src/frontend/src/pad/containers/Dashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const Dashboard: React.FC<DashboardProps> = ({
9393
// Set up resize observer to check if there's enough space
9494
useEffect(() => {
9595
// Minimum height required for the ActionButtonGrid to render properly
96-
const MIN_REQUIRED_HEIGHT = 240; // Adjust this value based on your design
96+
const MIN_REQUIRED_HEIGHT = 200; // Adjust this value based on your design
9797

9898
const checkSize = () => {
9999
if (dashboardRef.current) {

0 commit comments

Comments
 (0)