mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Fix focus opens chat on mobile
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
|
||||
$effect(() => {
|
||||
void page.url.pathname;
|
||||
if (chatTextareaRef) {
|
||||
if (chatTextareaRef && !$isSmallViewport) {
|
||||
chatTextareaRef.focus();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -225,8 +225,12 @@
|
||||
label={studio.status}
|
||||
status={studio.status === 'connected' ? 'complete' : 'pending'} />
|
||||
{#if dev}
|
||||
<Button.Button on:click={() => (debug = true)} size="s" variant="primary"
|
||||
>DEBUG</Button.Button>
|
||||
<div class="hide-mobile">
|
||||
<Button.Button
|
||||
on:click={() => (debug = true)}
|
||||
size="s"
|
||||
variant="primary">DEBUG</Button.Button>
|
||||
</div>
|
||||
{/if}
|
||||
<Button.Button size="s" variant="primary">Release</Button.Button>
|
||||
</Layout.Stack>
|
||||
@@ -437,4 +441,11 @@
|
||||
width: calc(100% + 2 * var(--space-7));
|
||||
}
|
||||
}
|
||||
|
||||
.hide-mobile {
|
||||
display: none;
|
||||
@media (min-width: 768px) {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user