From 93fd7d752633de742fe93bc942f18b6100cf2600 Mon Sep 17 00:00:00 2001 From: Khairul Hidayat Date: Wed, 10 Jan 2024 17:27:08 +0000 Subject: [PATCH] fix: bottomsheet responsivity --- src/components/ui/Sheet.tsx | 7 +++++-- src/pages/artworks/viewSheet.tsx | 7 ++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/ui/Sheet.tsx b/src/components/ui/Sheet.tsx index aedebf7..1b5558b 100644 --- a/src/components/ui/Sheet.tsx +++ b/src/components/ui/Sheet.tsx @@ -142,14 +142,17 @@ const Sheet = ({ }: SheetProps) => { return ( - + {title ? {title} : null} {description ? ( {description} ) : null} -
{children}
+
{children}
); diff --git a/src/pages/artworks/viewSheet.tsx b/src/pages/artworks/viewSheet.tsx index 5fedeb4..efca817 100644 --- a/src/pages/artworks/viewSheet.tsx +++ b/src/pages/artworks/viewSheet.tsx @@ -24,7 +24,7 @@ const ViewSheet = ({ modal }: Props) => { {...modal} title="View Item" position="bottom" - className="rounded-t-none max-h-auto h-screen" + className="md:rounded-t-none h-[90vh] md:h-screen" > {isLoading ? (
@@ -48,10 +48,7 @@ const ViewSheet = ({ modal }: Props) => {
-