From 2dd02035cf79fc25ec2e48c2fde4f58144344975 Mon Sep 17 00:00:00 2001 From: Ian Jones <51156018+ianjon3s@users.noreply.github.com> Date: Thu, 1 Aug 2024 17:06:17 +0100 Subject: [PATCH] fix: Add min-height to map container (#3480) --- .../src/@planx/components/shared/Preview/MapContainer.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editor.planx.uk/src/@planx/components/shared/Preview/MapContainer.tsx b/editor.planx.uk/src/@planx/components/shared/Preview/MapContainer.tsx index 5fff936bc9..d287cc99ed 100644 --- a/editor.planx.uk/src/@planx/components/shared/Preview/MapContainer.tsx +++ b/editor.planx.uk/src/@planx/components/shared/Preview/MapContainer.tsx @@ -18,6 +18,11 @@ export const MapContainer = styled(Box)( // Only increase map size in Published, Preview, and Draft routes height: size === "large" && environment === "standalone" ? "70vh" : "50vh", + // Ensure map is not reduced to an unusable height + minHeight: "400px", + [theme.breakpoints.up("md")]: { + minHeight: "480px", + }, }, }), );