mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 11:27:46 +01:00
refac: remember sidebar status
This commit is contained in:
@@ -115,7 +115,11 @@
|
||||
}
|
||||
});
|
||||
|
||||
showSidebar.set(window.innerWidth > BREAKPOINT);
|
||||
showSidebar.set(!$mobile ? localStorage.sidebar === 'true' : false);
|
||||
showSidebar.subscribe((value) => {
|
||||
localStorage.sidebar = value;
|
||||
});
|
||||
|
||||
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
|
||||
await enablePagination();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user