mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: form class breaking wizard layout
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
<script lang="ts">
|
||||
export let noMargin = false;
|
||||
export let isWizard = false;
|
||||
</script>
|
||||
|
||||
<!-- svelte-ignore a11y-no-redundant-roles -->
|
||||
<form role="form" class="form" class:common-section={!noMargin} on:submit|preventDefault>
|
||||
<form role="form" class:form={!isWizard} class:common-section={!noMargin} on:submit|preventDefault>
|
||||
<slot />
|
||||
</form>
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
<slot name="media" />
|
||||
</div>
|
||||
<div class="wizard-main">
|
||||
<Form on:submit={submit}>
|
||||
<Form isWizard on:submit={submit}>
|
||||
{#each sortedSteps as [step, { component }]}
|
||||
{#if currentStep === step}
|
||||
<svelte:component this={component} />
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { InputChoice, Button, InputFile, InputText, Form } from '$lib/elements/forms';
|
||||
import { InputChoice, Button, InputText, Form } from '$lib/elements/forms';
|
||||
import { Modal, Collapsible, CollapsibleItem, Tabs, Tab } from '$lib/components';
|
||||
import { sdkForProject } from '$lib/stores/sdk';
|
||||
import { createEventDispatcher } from 'svelte';
|
||||
|
||||
Reference in New Issue
Block a user