fix: fix bug with stations in the route

This commit is contained in:
2026-02-04 20:29:09 +03:00
parent 58abe15ec4
commit 8fe6505249
4 changed files with 75 additions and 72 deletions

View File

@@ -169,7 +169,7 @@ export const MapDataProvider = observer(
}
function setIconSize(size: number) {
const clamped = Math.max(50, Math.min(300, size));
const clamped = Math.max(1, Math.min(300, size));
setRouteChanges((prev) => {
if (prev.icon_size === clamped) {
return prev;
@@ -179,7 +179,7 @@ export const MapDataProvider = observer(
}
function setFontSize(size: number) {
const clamped = Math.max(50, Math.min(300, size));
const clamped = Math.max(1, Math.min(300, size));
setRouteChanges((prev) => {
if (prev.font_size === clamped) {
return prev;