We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d16f37 commit c4b7140Copy full SHA for c4b7140
src/components/map/index.tsx
@@ -446,10 +446,13 @@ export const MapComponent = () => {
446
const dpOpen = state.directionsPanelOpen;
447
const spOpen = state.settingsPanelOpen;
448
449
- const paddingTopLeft = [screen.width < 550 ? 50 : dpOpen ? 420 : 50, 50];
+ const paddingTopLeft = [
450
+ window.innerWidth < 550 ? 80 : dpOpen ? 450 : 80,
451
+ 80,
452
+ ];
453
const paddingBottomRight = [
- screen.width < 550 ? 50 : spOpen ? 420 : 50,
- 50,
454
+ window.innerWidth < 550 ? 80 : spOpen ? 450 : 80,
455
456
];
457
458
mapRef.current.fitBounds(bounds, {
0 commit comments