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:
+5
-5
@@ -5,13 +5,11 @@ import { pageLayoutDraggedAreaComponentState } from '@/page-layout/states/pageLa
|
||||
import { type GraphWidgetFieldSelection } from '@/page-layout/types/GraphWidgetFieldSelection';
|
||||
import { addWidgetToTab } from '@/page-layout/utils/addWidgetToTab';
|
||||
import { createDefaultGraphWidget } from '@/page-layout/utils/createDefaultGraphWidget';
|
||||
import {
|
||||
getWidgetSize,
|
||||
getWidgetTitle,
|
||||
} from '@/page-layout/utils/getDefaultWidgetData';
|
||||
import { getDefaultWidgetPosition } from '@/page-layout/utils/getDefaultWidgetPosition';
|
||||
import { getTabListInstanceIdFromPageLayoutId } from '@/page-layout/utils/getTabListInstanceIdFromPageLayoutId';
|
||||
import { getUpdatedTabLayouts } from '@/page-layout/utils/getUpdatedTabLayouts';
|
||||
import { getWidgetSize } from '@/page-layout/utils/getWidgetSize';
|
||||
import { getWidgetTitle } from '@/page-layout/utils/getWidgetTitle';
|
||||
import { activeTabIdComponentState } from '@/ui/layout/tab-list/states/activeTabIdComponentState';
|
||||
import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/component-state/hooks/useAvailableComponentInstanceIdOrThrow';
|
||||
import { useRecoilComponentCallbackState } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentCallbackState';
|
||||
@@ -91,10 +89,12 @@ export const useCreatePageLayoutGraphWidget = (
|
||||
const title = getWidgetTitle(graphType, existingWidgetCount);
|
||||
const widgetId = uuidv4();
|
||||
|
||||
const defaultSize = getWidgetSize(graphType);
|
||||
const defaultSize = getWidgetSize(graphType, 'default');
|
||||
const minimumSize = getWidgetSize(graphType, 'minimum');
|
||||
const position = getDefaultWidgetPosition(
|
||||
pageLayoutDraggedArea,
|
||||
defaultSize,
|
||||
minimumSize,
|
||||
);
|
||||
|
||||
const newWidget = createDefaultGraphWidget({
|
||||
|
||||
Reference in New Issue
Block a user