mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Automatically close chat on non-editor pages
This commit is contained in:
@@ -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} />
|
||||
|
||||
Reference in New Issue
Block a user