From abdb80a6bec91af47a609616bbc98b454d3e97d0 Mon Sep 17 00:00:00 2001 From: Siddhant Rai Date: Wed, 12 Jun 2024 15:55:55 +0530 Subject: [PATCH 1/2] fix: input field covered by url bar in safari --- frontend/index.html | 26 +++++++++++++--------- frontend/src/conversation/Conversation.tsx | 4 ++-- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 3717e3e..0747f41 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,13 +1,17 @@ - - - - DocsGPT 🦖 - - - -
- - - + + + + + + DocsGPT 🦖 + + + + +
+ + + + \ No newline at end of file diff --git a/frontend/src/conversation/Conversation.tsx b/frontend/src/conversation/Conversation.tsx index cf4949e..f19446c 100644 --- a/frontend/src/conversation/Conversation.tsx +++ b/frontend/src/conversation/Conversation.tsx @@ -137,13 +137,13 @@ export default function Conversation() {
{queries.length > 0 && !hasScrolledToLast && (
-
+
{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); +}