refactor: pr review

This commit is contained in:
tglide committed 2023-03-10 20:11:21 +00:00
1 parent 70755a64ee
commit 48c3fef7c9
3 files changed
+12 -10

No files matched your search

+10 -8
View File
@@ -5,12 +5,14 @@
</script>
<Heading size="4" tag="h1" trimmed={false}>
{#if href}
<a class="button is-text is-only-icon" {href} aria-label="page back">
<span class="icon-cheveron-left" aria-hidden="true" />
</a>
{/if}
<span class="text u-trim-1">
<slot />
</span>
<div class="u-flex u-cross-center">
{#if href}
<a class="button is-text is-only-icon" {href} aria-label="page back">
<span class="icon-cheveron-left" aria-hidden="true" />
</a>
{/if}
<span class="text u-trim-1">
<slot />
</span>
</div>
</Heading>
@@ -1,7 +1,7 @@
<script lang="ts">
import { goto, invalidate } from '$app/navigation';
import type { Models } from '@aw-labs/appwrite-console';
import Create from './create.svelte';
import CreateCollection from './createCollection.svelte';
import { showCreate } from './store';
import { base } from '$app/paths';
import { page } from '$app/stores';
@@ -25,4 +25,4 @@
<slot />
<Create bind:showCreate={$showCreate} on:created={handleCreate} />
<CreateCollection bind:showCreate={$showCreate} on:created={handleCreate} />