Skip to content

Commit

Permalink
Merge pull request #85 from AprilNEA/fix-mobile
Browse files Browse the repository at this point in the history
fix: fix #82, close sidebar after new session
  • Loading branch information
Yidadaa authored Mar 28, 2023
2 parents c93a46a + 684a3c4 commit 939402b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/components/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,10 @@ export function Home() {
<IconButton
icon={<AddIcon />}
text={Locale.Home.NewChat}
onClick={createNewSession}
onClick={()=>{
createNewSession();
setShowSideBar(false);
}}
/>
</div>
</div>
Expand Down

1 comment on commit 939402b

@vercel
Copy link

@vercel vercel bot commented on 939402b Mar 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.