From 1ba22e5e3dc9293ac9d94520096fc5dff383f175 Mon Sep 17 00:00:00 2001 From: anamontiaga Date: Thu, 11 Apr 2024 16:54:31 +0200 Subject: [PATCH 1/2] add close btn to modal and fix fade into country info modals --- client/src/containers/countries/detail/panel.tsx | 8 ++++++-- client/src/containers/share/index.tsx | 6 +++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/client/src/containers/countries/detail/panel.tsx b/client/src/containers/countries/detail/panel.tsx index 51a36924..a1646bec 100644 --- a/client/src/containers/countries/detail/panel.tsx +++ b/client/src/containers/countries/detail/panel.tsx @@ -7,6 +7,7 @@ import Image from 'next/image'; import Link from 'next/link'; import { notFound, useParams } from 'next/navigation'; +import { X } from 'lucide-react'; import { ArrowLeft, Download, ExternalLink, Info } from 'lucide-react'; import remarkGfm from 'remark-gfm'; @@ -31,7 +32,7 @@ import { COLUMNS, CSV_COLUMNS_ORDER } from '@/containers/countries/detail/consta import Share from '@/containers/share'; import { Button } from '@/components/ui/button'; -import { Dialog, DialogContent, DialogTrigger } from '@/components/ui/dialog'; +import { Dialog, DialogClose, DialogContent, DialogTrigger } from '@/components/ui/dialog'; import ContentLoader from '@/components/ui/loader'; import { ScrollArea } from '@/components/ui/scroll-area'; import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'; @@ -192,7 +193,7 @@ export default function CountryDetailPanel() { )}

{data?.data?.attributes?.name}

-
+
{data?.data?.attributes?.description} @@ -200,6 +201,9 @@ export default function CountryDetailPanel() {
+ + + diff --git a/client/src/containers/share/index.tsx b/client/src/containers/share/index.tsx index 6c653aa1..4fa9c72f 100644 --- a/client/src/containers/share/index.tsx +++ b/client/src/containers/share/index.tsx @@ -4,12 +4,13 @@ import { EmailShareButton, FacebookShareButton, TwitterShareButton } from 'react import { usePathname } from 'next/navigation'; +import { X } from 'lucide-react'; import { Facebook, Twitter, Mail, Share2 } from 'lucide-react'; import { cn } from '@/lib/classnames'; import { Button } from '@/components/ui/button'; -import { Dialog, DialogContent, DialogTrigger } from '@/components/ui/dialog'; +import { Dialog, DialogClose, DialogContent, DialogTrigger } from '@/components/ui/dialog'; import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'; export default function Share() { @@ -114,6 +115,9 @@ export default function Share() { + + + ); From 6b10049e6959cf5ecdaf904d5ee3530097520ec6 Mon Sep 17 00:00:00 2001 From: anamontiaga Date: Thu, 11 Apr 2024 16:56:14 +0200 Subject: [PATCH 2/2] fix scroll area padding in datasets --- client/src/app/(landing)/datasets/page.tsx | 4 ++-- client/src/containers/datasets/list.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/app/(landing)/datasets/page.tsx b/client/src/app/(landing)/datasets/page.tsx index 65c93e7a..72f85041 100644 --- a/client/src/app/(landing)/datasets/page.tsx +++ b/client/src/app/(landing)/datasets/page.tsx @@ -11,8 +11,8 @@ export const metadata: Metadata = { export default function DatasetsPage() { return ( -
-

Datasets

+
+

Datasets

diff --git a/client/src/containers/datasets/list.tsx b/client/src/containers/datasets/list.tsx index 91702e5e..1c220ab2 100644 --- a/client/src/containers/datasets/list.tsx +++ b/client/src/containers/datasets/list.tsx @@ -25,7 +25,7 @@ export default function DatasetsList() { isError={isError} loaderClassName="mt-40" > - +

Activate data layers on the map

{layers