From bd5d93a964204eee27f7a37d35e9aaceb186b129 Mon Sep 17 00:00:00 2001 From: Siddhant Rai Date: Thu, 13 Jun 2024 00:21:51 +0530 Subject: [PATCH] fix: unfixed input bar + safe area inset for Safari (iOS) --- frontend/index.html | 2 +- frontend/src/Hero.tsx | 2 +- frontend/src/conversation/Conversation.tsx | 8 ++++---- frontend/src/index.css | 4 ++++ 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 0747f41..5af1721 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -3,7 +3,7 @@ - + DocsGPT 🦖 diff --git a/frontend/src/Hero.tsx b/frontend/src/Hero.tsx index 69bf23a..f35eaa6 100644 --- a/frontend/src/Hero.tsx +++ b/frontend/src/Hero.tsx @@ -23,7 +23,7 @@ export default function Hero({
-
+
{demos?.map( (demo: { header: string; query: string }, key: number) => demo.header && diff --git a/frontend/src/conversation/Conversation.tsx b/frontend/src/conversation/Conversation.tsx index f19446c..636d405 100644 --- a/frontend/src/conversation/Conversation.tsx +++ b/frontend/src/conversation/Conversation.tsx @@ -137,7 +137,7 @@ export default function Conversation() {
{queries.length > 0 && !hasScrolledToLast && (
-
-
+
+
) : (
diff --git a/frontend/src/index.css b/frontend/src/index.css index c47b442..ac90fc6 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -408,3 +408,7 @@ template { ::-webkit-scrollbar { width: 0; } + +.bottom-safe { + bottom: env(safe-area-inset-bottom, 0); +}