From cd3549133750cc1e3370e182a2b8bbc885ffcdf8 Mon Sep 17 00:00:00 2001 From: ernstmul Date: Mon, 12 May 2025 14:33:52 +0200 Subject: [PATCH] Fix: mobile studio layout --- src/lib/components/studio/chat/chat.svelte | 15 +++-- src/lib/layout/shellStudio.svelte | 43 +++++++------ .../studio/artifact-[artifact]/+layout.svelte | 63 +++++++++++++------ .../studio/artifact-[artifact]/+page.svelte | 17 +++-- 4 files changed, 88 insertions(+), 50 deletions(-) diff --git a/src/lib/components/studio/chat/chat.svelte b/src/lib/components/studio/chat/chat.svelte index b557f9098..68a8b4a73 100644 --- a/src/lib/components/studio/chat/chat.svelte +++ b/src/lib/components/studio/chat/chat.svelte @@ -188,8 +188,8 @@ } .chat.minimize-chat { top: auto; - bottom: var(--space-4); - height: 68px; + bottom: 0; + height: auto; } .chat-placeholder { @@ -208,18 +208,18 @@ '.' '.'; height: calc(100% - var(--space-4)); - width: 100%; + width: calc(100% + var(--space-7)); background-color: var(--bgcolor-neutral-primary); border: 1px solid var(--border-neutral); - border-radius: var(--border-radius-m); + padding-inline: var(--space-4); @media (min-width: 768px) { + width: 100%; height: 100%; background-color: transparent; border: 0; - border-radius: 0; } } @@ -250,7 +250,6 @@ .input { border: 1px solid var(--border-neutral); border-radius: var(--border-radius-m); - margin-block-end: var(--space-4); padding: var(--space-6); textarea { @@ -258,6 +257,10 @@ min-height: 100px; resize: none; } + + @media (min-width: 768px) { + margin-block-end: var(--space-4); + } } .input.minimize-chat { diff --git a/src/lib/layout/shellStudio.svelte b/src/lib/layout/shellStudio.svelte index be4bf12b6..17fb00dee 100644 --- a/src/lib/layout/shellStudio.svelte +++ b/src/lib/layout/shellStudio.svelte @@ -249,7 +249,10 @@
-
+
@@ -267,18 +270,20 @@
- { - showAccountMenu = !showAccountMenu; - shouldAnimateThemeToggle = false; - if (showAccountMenu) { - trackEvent(Click.MenuDropDownClick); - } - }}> -
- -
-
+ + { + showAccountMenu = !showAccountMenu; + shouldAnimateThemeToggle = false; + if (showAccountMenu) { + trackEvent(Click.MenuDropDownClick); + } + }}> +
+ +
+
+
{#if showAccountMenu}