Skip to content

Commit

Permalink
transition duration
Browse files Browse the repository at this point in the history
  • Loading branch information
anamontiaga committed Sep 13, 2023
1 parent a6404d3 commit f53d5b7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/layout/projects/new/map/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
2 changes: 1 addition & 1 deletion app/layout/projects/show/map/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
4 changes: 2 additions & 2 deletions app/layout/scenarios/edit/map/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down Expand Up @@ -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]);
Expand Down
2 changes: 1 addition & 1 deletion app/layout/scenarios/new/map/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const ScenarioNewMap: React.FC<ScenarioNewMapProps> = () => {
useEffect(() => {
setBounds((prevState) => ({
...prevState,
viewportOptions: { transitionDuration: 1500 },
viewportOptions: { transitionDuration: 800 },
options: { padding: { top: 50, right: 50, bottom: 50, left: isSidebarOpen ? 575 : 50 } },
}));
}, [isSidebarOpen]);
Expand Down

0 comments on commit f53d5b7

Please sign in to comment.