Dashboards followups 2 (#15107)

adding min height and widths on each chart

this Pr address this followups - 
-
https://github.com/twentyhq/core-team-issues/issues/1710#issuecomment-3405312108
- <img width="843" height="38" alt="Screenshot 2025-10-15 at 15 19 27"
src="https://github.com/user-attachments/assets/f33da21f-a605-40f9-b7fa-02be9dff5908"
/>
- <img width="830" height="42" alt="Screenshot 2025-10-15 at 15 19 40"
src="https://github.com/user-attachments/assets/bf6f3783-b5cc-44c0-94a2-029a489c852e"
/>

video QA
before:


https://github.com/user-attachments/assets/28262a7b-531f-4dcb-9047-c587fe3d8af6


after: 


https://github.com/user-attachments/assets/b0fdbc18-3a7e-4c85-98b6-5799d7207bb4
This commit is contained in:
nitin
2025-10-15 19:35:56 +05:30
committed by GitHub
parent 9aa44ef1e8
commit bd16c77fed
12 changed files with 165 additions and 53 deletions
@@ -3,9 +3,15 @@ import { type GridBounds } from './calculateGridBoundsFromSelectedCells';
export const getDefaultWidgetPosition = (
draggedArea: GridBounds | null,
defaultSize: { w: number; h: number },
minimumSize: { w: number; h: number },
): GridBounds => {
if (draggedArea !== null) {
return draggedArea;
return {
x: draggedArea.x,
y: draggedArea.y,
w: Math.max(draggedArea.w, minimumSize.w),
h: Math.max(draggedArea.h, minimumSize.h),
};
}
return {