Browse Source

Merge pull request #85 from AprilNEA/fix-mobile

fix: fix #82, close sidebar after new session
Yifei Zhang 1 year ago
parent
commit
939402b2d9
1 changed files with 4 additions and 1 deletions
  1. 4 1
      app/components/home.tsx

+ 4 - 1
app/components/home.tsx

@@ -561,7 +561,10 @@ export function Home() {
             <IconButton
               icon={<AddIcon />}
               text={Locale.Home.NewChat}
-              onClick={createNewSession}
+              onClick={()=>{
+                createNewSession();
+                setShowSideBar(false);
+              }}
             />
           </div>
         </div>