Fix: Promptbar initializes in open state for Mobile (#542)
* Fix for DEFAULT_SYSTEM_PROMPT * Set the prompt bar to be hidden if screen < 640
This commit is contained in:
parent
f01d0c51d6
commit
7c259b98cb
|
@ -275,6 +275,7 @@ const Home = ({
|
||||||
|
|
||||||
if (window.innerWidth < 640) {
|
if (window.innerWidth < 640) {
|
||||||
dispatch({ field: 'showChatbar', value: false });
|
dispatch({ field: 'showChatbar', value: false });
|
||||||
|
dispatch({ field: 'showPromptbar', value: false });
|
||||||
}
|
}
|
||||||
|
|
||||||
const showChatbar = localStorage.getItem('showChatbar');
|
const showChatbar = localStorage.getItem('showChatbar');
|
||||||
|
|
Loading…
Reference in New Issue