From b2ab6fd19d6def29e0221829b8ababef95e135b2 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+Berry-13@users.noreply.github.com> Date: Wed, 6 Mar 2024 23:03:23 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=96=8C=EF=B8=8F=20style:=20update=20dialo?= =?UTF-8?q?g=20position=20(#1999)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * style(ChatForm): update styling and fixed style bug * style:(Dialog): reduced max height style(Settings): fixed dialog position height * style(Settings): fixed large screen position --- client/src/components/Chat/Input/ChatForm.tsx | 2 +- client/src/components/Nav/Settings.tsx | 5 ++++- client/src/components/ui/Dialog.tsx | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/client/src/components/Chat/Input/ChatForm.tsx b/client/src/components/Chat/Input/ChatForm.tsx index ff2b47f4e7..bec33d7a6d 100644 --- a/client/src/components/Chat/Input/ChatForm.tsx +++ b/client/src/components/Chat/Input/ChatForm.tsx @@ -43,7 +43,7 @@ export default function ChatForm({ index = 0 }) { >
-
+
diff --git a/client/src/components/ui/Dialog.tsx b/client/src/components/ui/Dialog.tsx index dae7a37c86..e9835cc9af 100644 --- a/client/src/components/ui/Dialog.tsx +++ b/client/src/components/ui/Dialog.tsx @@ -52,7 +52,7 @@ const DialogContent = React.forwardRef< 'fixed z-[999] grid w-full gap-4 rounded-b-lg bg-white pb-6 animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:rounded-lg', 'dark:bg-slate-900', isSmallScreen - ? 'fixed left-1/2 top-24 z-[999] m-auto grid w-11/12 -translate-x-1/2 gap-4 rounded-xl bg-white pb-6' + ? 'fixed left-1/2 top-1/2 z-[999] m-auto grid w-11/12 -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-white pb-6' : '', className ?? '', )}