Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit cca7b0c

Browse files
committed
Increase step size for one meter grid step.
1 parent 285a8ce commit cca7b0c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • frontend/src/features/map_planning/layers/_frontend_only/grid/util

frontend/src/features/map_planning/layers/_frontend_only/grid/util/Calculations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import { ONE_METER, TEN_CENTIMETERS } from '@/features/map_planning/utils/Consta
55
* @param screenWidth current screen width
66
*/
77
export function calculateGridStep(screenWidth: number): number {
8-
if (screenWidth > 50 * ONE_METER) {
8+
if (screenWidth > 70 * ONE_METER) {
99
return 10 * ONE_METER;
1010
}
1111

12-
if (screenWidth > 10 * ONE_METER) {
12+
if (screenWidth > 5 * ONE_METER) {
1313
return ONE_METER;
1414
}
1515

0 commit comments

Comments
 (0)