From e90aef4b3c526556a080796aac00423bab7416c2 Mon Sep 17 00:00:00 2001 From: Shantur Rathore Date: Mon, 23 Feb 2026 18:36:24 +0000 Subject: [PATCH] fix(ui): stack instance header under 1024px --- .../components/instance/instance-shell2.tsx | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/packages/ui/src/components/instance/instance-shell2.tsx b/packages/ui/src/components/instance/instance-shell2.tsx index 43998a17..464a2acb 100644 --- a/packages/ui/src/components/instance/instance-shell2.tsx +++ b/packages/ui/src/components/instance/instance-shell2.tsx @@ -115,6 +115,7 @@ const InstanceShell2: Component = (props) => { const desktopQuery = useMediaQuery("(min-width: 1280px)") const tabletQuery = useMediaQuery("(min-width: 768px)") + const compactHeaderQuery = useMediaQuery("(max-width: 1024px)") const layoutMode = createMemo(() => { if (desktopQuery()) return "desktop" @@ -123,6 +124,7 @@ const InstanceShell2: Component = (props) => { }) const isPhoneLayout = createMemo(() => layoutMode() === "phone") + const compactHeaderLayout = createMemo(() => isPhoneLayout() || compactHeaderQuery()) const mobileFullscreen = createMemo(() => props.mobileFullscreenMode && isPhoneLayout()) const compactPromptLayout = createMemo(() => layoutMode() !== "desktop") const leftPinningSupported = createMemo(() => layoutMode() !== "phone") @@ -596,7 +598,7 @@ const InstanceShell2: Component = (props) => {
@@ -634,8 +636,8 @@ const InstanceShell2: Component = (props) => { - -
+ +
= (props) => {
- + = (props) => { {rightAppBarButtonIcon()} - +
- + + +
}