Skip to content

Commit

Permalink
Fix: Promptbar initializes in open state for Mobile (mckaywrigley#542)
Browse files Browse the repository at this point in the history
* Fix for DEFAULT_SYSTEM_PROMPT

* Set the prompt bar to be hidden if screen < 640
  • Loading branch information
adiestel authored Apr 14, 2023
1 parent f01d0c5 commit 7c259b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pages/api/home/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 7c259b9

Please sign in to comment.