From b3a7d410de00547a6d5b53128cab66cd4a1487ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Wed, 25 Oct 2023 19:51:10 +0100 Subject: [PATCH] fix: Increase spacing above Name the site input --- .../src/@planx/components/FindProperty/Public/Map.tsx | 2 +- .../src/@planx/components/shared/Preview/MapContainer.tsx | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/editor.planx.uk/src/@planx/components/FindProperty/Public/Map.tsx b/editor.planx.uk/src/@planx/components/FindProperty/Public/Map.tsx index b1c4a77cea..1051b8ce06 100644 --- a/editor.planx.uk/src/@planx/components/FindProperty/Public/Map.tsx +++ b/editor.planx.uk/src/@planx/components/FindProperty/Public/Map.tsx @@ -157,7 +157,7 @@ export default function PlotNewAddress(props: PlotNewAddressProps): FCReturn { - + ( padding: theme.spacing(1, 0, 1, 0), width: "100%", maxWidth: "none", - height: "50vh", "& my-map": { width: "100%", - height: "100%", + // Only increase map size in Preview & Unpublished routes + height: + size === "large" && environment === "standalone" ? "70vh" : "50vh", }, - // Only increase map size in Preview & Unpublished routes - ...(size === "large" && environment === "standalone" && { height: "70vh" }), }), );