Skip to content

Commit 6a0b9ac

Browse files
committed
addressed some comments
1 parent 3b3133d commit 6a0b9ac

1 file changed

Lines changed: 24 additions & 32 deletions

File tree

src/lib/studio/mobileMessage.svelte

Lines changed: 24 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,34 @@
11
<script lang="ts">
22
import { Card, Layout, Typography, Icon, Alert } from '@appwrite.io/pink-svelte';
33
import { IconDeviceMobile, IconDesktopComputer } from '@appwrite.io/pink-icons-svelte';
4-
import { isSmallViewport } from '$lib/stores/viewport';
54
</script>
65

7-
{#if $isSmallViewport}
8-
<div class="mobile-studio-scrim">
9-
<div class="mobile-studio-modal">
10-
<Card.Base variant="secondary" padding="l" radius="l">
11-
<Layout.Stack gap="l" alignItems="center" justifyContent="center">
12-
<Icon icon={IconDesktopComputer} size="l" color="--fgcolor-neutral-primary" />
13-
<Layout.Stack gap="m" alignItems="center">
14-
<Typography.Title size="l" align="center">
15-
This experience works best on a larger screen.
16-
</Typography.Title>
17-
<Typography.Text align="center" color="--fgcolor-neutral-secondary">
18-
We’re working on making Imagine Studio fully responsive for mobile.
19-
For now, please use a tablet or desktop.
20-
</Typography.Text>
21-
</Layout.Stack>
22-
<div class="studio-alert-wrapper">
23-
<Alert.Inline status="info" title="Quick tip">
24-
<svelte:fragment slot="icon">
25-
<Icon icon={IconDeviceMobile} size="m" />
26-
</svelte:fragment>
27-
You can enable desktop mode in your mobile browser.
28-
</Alert.Inline>
29-
</div>
6+
<div class="mobile-studio-scrim">
7+
<div style:width="100%" style:max-width="480px">
8+
<Card.Base variant="secondary" padding="l" radius="l">
9+
<Layout.Stack gap="l" alignItems="center" justifyContent="center">
10+
<Icon icon={IconDesktopComputer} size="l" color="--fgcolor-neutral-primary" />
11+
<Layout.Stack gap="m" alignItems="center">
12+
<Typography.Title size="l" align="center">
13+
This experience works best on a larger screen.
14+
</Typography.Title>
15+
<Typography.Text align="center" color="--fgcolor-neutral-secondary">
16+
We’re working on making Imagine Studio fully responsive for mobile. For now,
17+
please use a tablet or desktop.
18+
</Typography.Text>
3019
</Layout.Stack>
31-
</Card.Base>
32-
</div>
20+
<div class="studio-alert-wrapper">
21+
<Alert.Inline status="info" title="Quick tip">
22+
<svelte:fragment slot="icon">
23+
<Icon icon={IconDeviceMobile} size="m" />
24+
</svelte:fragment>
25+
You can enable desktop mode in your mobile browser.
26+
</Alert.Inline>
27+
</div>
28+
</Layout.Stack>
29+
</Card.Base>
3330
</div>
34-
{/if}
31+
</div>
3532

3633
<style>
3734
.mobile-studio-scrim {
@@ -49,11 +46,6 @@ For now, please use a tablet or desktop.
4946
padding: var(--space-6, 12px);
5047
}
5148
52-
.mobile-studio-modal {
53-
width: 100%;
54-
max-width: 480px;
55-
}
56-
5749
.studio-alert-wrapper {
5850
margin-block-start: var(--space-2, 4px);
5951
width: 100%;

0 commit comments

Comments
 (0)