From dc7f4edb7639fcd9355789e7b54c0ba9b491b8d5 Mon Sep 17 00:00:00 2001 From: harsh mahajan Date: Wed, 9 Sep 2026 18:30:34 +0530 Subject: [PATCH] fix(console): keep the new console banner on one row down to 768px The 768px crush had two causes: the full-width mobile button claiming the whole line, and the direction breakpoint sitting at isSmallViewport (767px) while .is-full-width-mobile applies at 768px. Dropping fullWidthMobile fixed it on its own; moving the breakpoint to isTabletViewport (1023px) as well just made the banner stack 256px earlier than it needs to, pushing "Try it now" below the copy on ordinary laptop widths. The text is ~64 characters and the button ~100px, which fits comfortably in 768px minus the shell padding, so the breakpoint goes back to 767px. Measured at 375, 767, 768, 900, 1023 and 1440: one row above 767px, stacked and centred below it, and main > header offset matches the stack height exactly at every width. --- src/lib/components/newConsoleBanner.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/newConsoleBanner.svelte b/src/lib/components/newConsoleBanner.svelte index dc1f4be15..b0c8c3f5a 100644 --- a/src/lib/components/newConsoleBanner.svelte +++ b/src/lib/components/newConsoleBanner.svelte @@ -2,7 +2,7 @@ import { trackEvent } from '$lib/actions/analytics'; import { Button } from '$lib/elements/forms'; import { Layout, Typography } from '@appwrite.io/pink-svelte'; - import { isTabletViewport } from '$lib/stores/viewport'; + import { isSmallViewport } from '$lib/stores/viewport'; import { hideNotification } from '$lib/helpers/notifications'; import { headerAlert } from '$lib/stores/headerAlert'; import { activeHeaderAlert } from '$routes/(console)/store'; @@ -35,8 +35,8 @@ alignItems="center" alignContent="center" justifyContent="center" - direction={$isTabletViewport ? 'column' : 'row'}> - + direction={$isSmallViewport ? 'column' : 'row'}> + Introducing the new Appwrite Console, rebuilt from the ground up.