Merge pull request #85 from AprilNEA/fix-mobile

fix: fix #82, close sidebar after new session
This commit is contained in:
Yifei Zhang 2023-03-28 11:56:29 +08:00 committed by GitHub
commit 939402b2d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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