Skip to content

Commit aae2041

Browse files
committed
feat: move error overlay to top
Signed-off-by: Eason(G Ray) <30045503+Eason0729@users.noreply.github.com>
1 parent 31505e7 commit aae2041

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

frontend/src/lib/components/ErrorMessage.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
{#if $error != null}
1010
<button
11-
class="fixed top-0 right-0 z-20 m-3 rounded-md border border-outline bg-component-bg px-3 py-2 text-left"
11+
class="fixed top-0 right-0 z-50 m-3 rounded-md border border-outline bg-component-bg px-3 py-2 text-left"
1212
in:fade={{ duration: 150 }}
1313
out:fade={{ duration: 150 }}
1414
onmouseleave={dismissError}

frontend/src/lib/components/setting/Setting.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
<SettingBtn bind:value />
2222
<Dialog.Portal>
2323
<Dialog.Overlay
24-
class="fixed inset-0 z-50 backdrop-blur-md fade-in-100 fade-out-0 data-[state=closed]:animate-out data-[state=open]:animate-in"
24+
class="fixed inset-0 z-20 backdrop-blur-md fade-in-100 fade-out-0 data-[state=closed]:animate-out data-[state=open]:animate-in"
2525
/>
2626
<Dialog.Content
27-
class="fixed inset-0 z-50 m-2 flex max-w-4xl rounded-xl border border-outline bg-popup-bg p-3 font-mono text-text fade-in fade-out zoom-in zoom-out data-[state=closed]:animate-out data-[state=open]:animate-in md:m-auto md:h-[min(80vh,48rem)] md:w-full"
27+
class="fixed inset-0 z-20 m-2 flex max-w-4xl rounded-xl border border-outline bg-popup-bg p-3 font-mono text-text fade-in fade-out zoom-in zoom-out data-[state=closed]:animate-out data-[state=open]:animate-in md:m-auto md:h-[min(80vh,48rem)] md:w-full"
2828
>
2929
<Dialog.Close
3030
class="focus-visible:ring-foreground focus-visible:ring-offset-background absolute top-5 right-5 rounded-md focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden active:scale-[0.98]"

frontend/src/lib/ui/Select.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
</Select.Trigger>
6767
<Select.Portal>
6868
<Select.Content
69-
class="z-50 max-h-48 rounded-xl border border-outline bg-input text-text outline-hidden select-none data-[side=bottom]:translate-y-1 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:-translate-y-1 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 {popupClass} "
69+
class="z-20 max-h-48 rounded-xl border border-outline bg-input text-text outline-hidden select-none data-[side=bottom]:translate-y-1 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:-translate-y-1 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 {popupClass} "
7070
sideOffset={10}
7171
>
7272
<Select.Viewport class="rounded-xl bg-clip-padding">

0 commit comments

Comments
 (0)