From 40bccb63d12fc6684b5976a72f4fbdd492723821 Mon Sep 17 00:00:00 2001 From: Maxime Bouveron Date: Tue, 26 Mar 2024 16:39:07 +0100 Subject: [PATCH 1/2] Change panel sizes logic --- src/app/[locale]/map/layout.tsx | 14 ++++---------- src/components/details.page.tsx | 2 +- src/components/map-Wrapper.tsx | 9 +-------- src/components/map-menu.tsx | 5 ++--- src/components/map-sidebar.tsx | 4 ++-- src/components/observation-cta.tsx | 4 ++-- src/components/search-form.tsx | 2 +- src/components/ui/navigation-menu.tsx | 4 +++- src/components/ui/scroll-area.tsx | 2 +- 9 files changed, 17 insertions(+), 29 deletions(-) diff --git a/src/app/[locale]/map/layout.tsx b/src/app/[locale]/map/layout.tsx index 99de9f0..c84bff3 100644 --- a/src/app/[locale]/map/layout.tsx +++ b/src/app/[locale]/map/layout.tsx @@ -32,22 +32,16 @@ export default async function MapLayout({ children }: Props) {
- +
{children}
- +
diff --git a/src/components/details.page.tsx b/src/components/details.page.tsx index 64c0b42..a30d20b 100644 --- a/src/components/details.page.tsx +++ b/src/components/details.page.tsx @@ -52,7 +52,7 @@ export default function DetailsPageUI({ content }: Props) {

{content.name}

-
+
{content.geometryCenter && ( +
); diff --git a/src/components/map-menu.tsx b/src/components/map-menu.tsx index 04e121c..19c050b 100644 --- a/src/components/map-menu.tsx +++ b/src/components/map-menu.tsx @@ -18,11 +18,10 @@ export default function MapMenu() {