Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/map/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,10 @@ export const MapComponent = () => {
const dpOpen = state.directionsPanelOpen;
const spOpen = state.settingsPanelOpen;

const paddingTopLeft = [screen.width < 550 ? 50 : dpOpen ? 420 : 50, 50];
const paddingTopLeft = [screen.width < 550 ? 80 : dpOpen ? 450 : 80, 80];
const paddingBottomRight = [
screen.width < 550 ? 50 : spOpen ? 420 : 50,
50,
screen.width < 550 ? 80 : spOpen ? 450 : 80,
80,
];

mapRef.current.fitBounds(bounds, {
Expand Down
Loading