mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #1908 from appwrite/fix-back-button-on-mobile
fix: show back button on mobile, fix create manual deployment check
This commit is contained in:
@@ -1,18 +1,24 @@
|
||||
<script lang="ts">
|
||||
import { isSmallViewport } from '$lib/stores/viewport';
|
||||
import { isSmallViewport, isTabletViewport } from '$lib/stores/viewport';
|
||||
import { IconChevronLeft } from '@appwrite.io/pink-icons-svelte';
|
||||
import { Typography, Button, Icon } from '@appwrite.io/pink-svelte';
|
||||
import { Typography, Button, Icon, Layout } from '@appwrite.io/pink-svelte';
|
||||
|
||||
export let href: string = null;
|
||||
</script>
|
||||
|
||||
{#if href}
|
||||
<span style:position="absolute" style:left="-2.75rem">
|
||||
<Button.Anchor size="s" icon variant="text" {href} aria-label="page back">
|
||||
<Icon icon={IconChevronLeft} />
|
||||
</Button.Anchor>
|
||||
</span>
|
||||
{/if}
|
||||
<Typography.Title truncate color="--fgcolor-neutral-primary" size={$isSmallViewport ? 'm' : 'l'}>
|
||||
<slot />
|
||||
</Typography.Title>
|
||||
<Layout.Stack justifyContent="center" alignItems="center" direction="row" gap="xs" inline>
|
||||
{#if href}
|
||||
<span
|
||||
style={$isTabletViewport ? 'position: relative' : 'position: absolute; left: -2.75rem'}>
|
||||
<Button.Anchor size="s" icon variant="text" {href} aria-label="page back">
|
||||
<Icon icon={IconChevronLeft} />
|
||||
</Button.Anchor>
|
||||
</span>
|
||||
{/if}
|
||||
<Typography.Title
|
||||
truncate
|
||||
color="--fgcolor-neutral-primary"
|
||||
size={$isSmallViewport ? 'm' : 'l'}>
|
||||
<slot />
|
||||
</Typography.Title>
|
||||
</Layout.Stack>
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
let error: string = '';
|
||||
|
||||
$: maxSize =
|
||||
isCloud && $currentPlan
|
||||
isCloud && $currentPlan?.deploymentSize
|
||||
? $currentPlan.deploymentSize * 1000000
|
||||
: $consoleVariables._APP_COMPUTE_SIZE_LIMIT; // already in MB
|
||||
|
||||
|
||||
Reference in New Issue
Block a user