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
b79a778c03
commit
aac0e97627
2 changed files with 2 additions and 2 deletions
|
|
@ -107,7 +107,7 @@
|
|||
$: mainChatActive = fullWidth && tabs.activeId === mainChatTabId;
|
||||
$: if (fullWidth !== tabs.tabs.some((tab) => tab.id === mainChatTabId)) {
|
||||
tabs = setFullWidthTabs(tabs, fullWidth, title);
|
||||
if (fullWidth) void tick().then(() => document.getElementById(domId(mainChatTabId))?.focus());
|
||||
if (fullWidth) void tick().then(() => document.getElementById(domId(tabs.activeId))?.focus());
|
||||
}
|
||||
const toggleLayout = async () => {
|
||||
if (panelTarget) releasePanel(panelTarget);
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ export function setFullWidthTabs(state: PanelTabs, fullWidth: boolean, label = '
|
|||
if (state.tabs.some((tab) => tab.id === mainChatTabId)) return state;
|
||||
return activateTab(
|
||||
{ ...state, tabs: [{ id: mainChatTabId, kind: 'chat', label }, ...state.tabs] },
|
||||
mainChatTabId
|
||||
state.activeId || mainChatTabId
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue