This commit is contained in:
Timothy Jaeryang Baek 2026-11-05 22:35:59 +09:00
parent f59552efff
commit 0c21d4ed84

View file

@ -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;