Automatically close chat on non-editor pages

This commit is contained in:
ernstmul
2025-05-09 11:22:48 +02:00
parent cbba2cd21e
commit 8fb72003ef
+4 -1
View File
@@ -113,6 +113,9 @@
if ($isSmallViewport || page.params.artifact) {
showChat.set(true);
}
if (!page.params.artifact) {
showChat.set(false);
}
});
let resizer = $state(null);
@@ -356,7 +359,7 @@
</Card.Base>
{:else}
<div class="studio-wrapper">
<Card.Base padding="xxs">
<Card.Base padding={$showChat ? 'xxs' : 's'}>
<Layout.Stack direction="row" gap={$showChat ? 'l' : 'none'}>
{#if hasProjectSidebar}
<Chat {parser} width={chatWidth} hasSubNavigation={false} />