From 7c259b98cbad3624ca75895fddbf50c674d06ab1 Mon Sep 17 00:00:00 2001 From: Aaron Diestelkamp <867839+adiestel@users.noreply.github.com> Date: Fri, 14 Apr 2023 02:13:52 -0500 Subject: [PATCH] Fix: Promptbar initializes in open state for Mobile (#542) * Fix for DEFAULT_SYSTEM_PROMPT * Set the prompt bar to be hidden if screen < 640 --- pages/api/home/home.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/api/home/home.tsx b/pages/api/home/home.tsx index 1cc0fb3..e5c6239 100644 --- a/pages/api/home/home.tsx +++ b/pages/api/home/home.tsx @@ -275,6 +275,7 @@ const Home = ({ if (window.innerWidth < 640) { dispatch({ field: 'showChatbar', value: false }); + dispatch({ field: 'showPromptbar', value: false }); } const showChatbar = localStorage.getItem('showChatbar');