From 163e35a49eae7a987ac8ac6af9a2eb49f88aa1b1 Mon Sep 17 00:00:00 2001 From: Janis Date: Fri, 16 Dec 2022 19:15:02 +0100 Subject: [PATCH] [fix] map freezes on mobile view --- components/Map.jsx | 17 +---------------- pages/api/hello.js | 5 ----- styles/Home.module.scss | 1 + 3 files changed, 2 insertions(+), 21 deletions(-) delete mode 100644 pages/api/hello.js diff --git a/components/Map.jsx b/components/Map.jsx index ecc9fc2..622f466 100644 --- a/components/Map.jsx +++ b/components/Map.jsx @@ -2,20 +2,7 @@ import "../styles/Map.module.scss"; function Map({ width = "100%", height = "100%", showAddressText }) { return ( -
window.innerWidth ?? "100%", - height: height > window.innerHeight ?? "100%", - } - : { - width: "100%", - height: "100%", - } - } - > +
{showAddressText ? (