mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-14 09:21:22 +00:00
refac
This commit is contained in:
parent
f59552efff
commit
0c21d4ed84
1 changed files with 1 additions and 2 deletions
|
|
@ -125,14 +125,13 @@
|
|||
: '';
|
||||
$: if (fullWidth !== tabs.tabs.some((tab) => tab.id === mainChatTabId)) {
|
||||
tabs = setFullWidthTabs(tabs, fullWidth, title);
|
||||
if (fullWidth) void tick().then(() => document.getElementById(domId(tabs.activeId))?.focus());
|
||||
}
|
||||
const toggleLayout = async () => {
|
||||
if (panelTarget) releasePanel(panelTarget);
|
||||
expanded = !expanded;
|
||||
localStorage.setItem('chatTabsLayout', expanded ? 'full' : 'side');
|
||||
await tick();
|
||||
if (!fullWidth) document.getElementById('chat-tabs-layout-toggle')?.focus();
|
||||
document.getElementById(fullWidth ? domId(tabs.activeId) : 'chat-tabs-layout-toggle')?.focus();
|
||||
};
|
||||
|
||||
let largeScreen = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue