mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-02-13 16:31:59 +02:00
added errors slide transition
This commit is contained in:
parent
e8d61e7b45
commit
01f0af7af6
@ -1,5 +1,6 @@
|
||||
<script>
|
||||
import { onMount } from "svelte";
|
||||
import { slide } from "svelte/transition";
|
||||
import { errors, removeError } from "@/stores/errors";
|
||||
import CommonHelper from "@/utils/CommonHelper";
|
||||
|
||||
@ -38,7 +39,7 @@
|
||||
<slot {uniqueId} />
|
||||
|
||||
{#each fieldErrors as error}
|
||||
<div class="help-block help-block-error">
|
||||
<div class="help-block help-block-error" transition:slide|local={{ duration: 150 }}>
|
||||
{#if typeof error === "object"}
|
||||
<pre>{error?.message || error?.code || defaultError}</pre>
|
||||
{:else}
|
||||
|
@ -34,7 +34,7 @@
|
||||
color: var(--txtHintColor);
|
||||
}
|
||||
.close {
|
||||
$size: 30px;
|
||||
$size: 28px;
|
||||
display: inline-flex;
|
||||
margin-right: -5px;
|
||||
width: $size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user