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:
@@ -1,3 +1,4 @@
|
||||
import { DEFAULT_WIDGET_SIZE } from '@/page-layout/constants/DefaultWidgetSize';
|
||||
import { PageLayoutComponentInstanceContext } from '@/page-layout/states/contexts/PageLayoutComponentInstanceContext';
|
||||
import { pageLayoutCurrentLayoutsComponentState } from '@/page-layout/states/pageLayoutCurrentLayoutsComponentState';
|
||||
import { pageLayoutDraftComponentState } from '@/page-layout/states/pageLayoutDraftComponentState';
|
||||
@@ -59,9 +60,11 @@ export const useCreatePageLayoutIframeWidget = (
|
||||
|
||||
const widgetId = uuidv4();
|
||||
const defaultSize = { w: 6, h: 6 };
|
||||
const minimumSize = DEFAULT_WIDGET_SIZE.minimum;
|
||||
const position = getDefaultWidgetPosition(
|
||||
pageLayoutDraggedArea,
|
||||
defaultSize,
|
||||
minimumSize,
|
||||
);
|
||||
|
||||
const newWidget = createDefaultIframeWidget(
|
||||
|
||||
Reference in New Issue
Block a user