diff --git a/app/layout/projects/new/map/component.tsx b/app/layout/projects/new/map/component.tsx index 83a471dc51..ce72b6b2d5 100644 --- a/app/layout/projects/new/map/component.tsx +++ b/app/layout/projects/new/map/component.tsx @@ -106,7 +106,7 @@ export const ProjectNewMap = ({ useEffect(() => { setBounds((prevState) => ({ ...prevState, - viewportOptions: { transitionDuration: 1500 }, + viewportOptions: { transitionDuration: 800 }, options: { padding: { top: 50, right: 50, bottom: 50, left: isSidebarOpen ? 575 : 50 } }, })); }, [isSidebarOpen]); diff --git a/app/layout/projects/show/map/index.tsx b/app/layout/projects/show/map/index.tsx index f169e249d1..26476af489 100644 --- a/app/layout/projects/show/map/index.tsx +++ b/app/layout/projects/show/map/index.tsx @@ -239,7 +239,7 @@ export const ProjectMap = (): JSX.Element => { useEffect(() => { setBounds((prevState) => ({ ...prevState, - viewportOptions: { transitionDuration: 1500 }, + viewportOptions: { transitionDuration: 800 }, options: { padding: { top: 50, right: 50, bottom: 50, left: isSidebarOpen ? 575 : 50 } }, })); }, [isSidebarOpen]); diff --git a/app/layout/scenarios/edit/map/component.tsx b/app/layout/scenarios/edit/map/component.tsx index af5195de27..fb6304ab40 100644 --- a/app/layout/scenarios/edit/map/component.tsx +++ b/app/layout/scenarios/edit/map/component.tsx @@ -116,7 +116,7 @@ export const ScenariosEditMap = (): JSX.Element => { useEffect(() => { setBounds((prevState) => ({ ...prevState, - viewportOptions: { transitionDuration: 1500 }, + viewportOptions: { transitionDuration: 800 }, options: { padding: { top: 50, right: 50, bottom: 50, left: isSidebarOpen ? 575 : 50 } }, })); }, [isSidebarOpen]); @@ -441,7 +441,7 @@ export const ScenariosEditMap = (): JSX.Element => { useEffect(() => { setBounds((prevState) => ({ ...prevState, - viewportOptions: { transitionDuration: 1500 }, + viewportOptions: { transitionDuration: 800 }, options: { padding: { top: 50, right: 50, bottom: 50, left: isSidebarOpen ? 575 : 50 } }, })); }, [isSidebarOpen]); diff --git a/app/layout/scenarios/new/map/component.tsx b/app/layout/scenarios/new/map/component.tsx index 650f5eae1c..a05ea6eb00 100644 --- a/app/layout/scenarios/new/map/component.tsx +++ b/app/layout/scenarios/new/map/component.tsx @@ -75,7 +75,7 @@ export const ScenarioNewMap: React.FC = () => { useEffect(() => { setBounds((prevState) => ({ ...prevState, - viewportOptions: { transitionDuration: 1500 }, + viewportOptions: { transitionDuration: 800 }, options: { padding: { top: 50, right: 50, bottom: 50, left: isSidebarOpen ? 575 : 50 } }, })); }, [isSidebarOpen]);