mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
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.
This commit is contained in:
1 parent
cda569b41b
commit
dc7f4edb76
1 file changed
+3
-3
@@ -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'}>
|
||||
<Typography.Text align={$isTabletViewport ? 'center' : 'start'}>
|
||||
direction={$isSmallViewport ? 'column' : 'row'}>
|
||||
<Typography.Text align={$isSmallViewport ? 'center' : 'start'}>
|
||||
Introducing the new Appwrite Console, rebuilt from the ground up.
|
||||
</Typography.Text>
|
||||
|
||||
|
||||
Reference in new issue
Block a user