fix: set lower z-index for toasts
This commit is contained in:
parent
47558bdd62
commit
b4814b57cf
@ -1,20 +1,21 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Toaster as Sonner, type ToasterProps as SonnerProps } from "svelte-sonner";
|
import { Toaster as Sonner, type ToasterProps as SonnerProps } from 'svelte-sonner';
|
||||||
import { mode } from "mode-watcher";
|
import { mode } from 'mode-watcher';
|
||||||
|
|
||||||
let { ...restProps }: SonnerProps = $props();
|
let { ...restProps }: SonnerProps = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Sonner
|
<Sonner
|
||||||
theme={mode.current}
|
theme={mode.current}
|
||||||
class="toaster group"
|
class="toaster group z-[5000]"
|
||||||
toastOptions={{
|
toastOptions={{
|
||||||
classes: {
|
classes: {
|
||||||
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
toast:
|
||||||
description: "group-[.toast]:text-muted-foreground",
|
'group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg',
|
||||||
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
description: 'group-[.toast]:text-muted-foreground',
|
||||||
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",
|
actionButton: 'group-[.toast]:bg-primary group-[.toast]:text-primary-foreground',
|
||||||
},
|
cancelButton: 'group-[.toast]:bg-muted group-[.toast]:text-muted-foreground',
|
||||||
}}
|
},
|
||||||
{...restProps}
|
}}
|
||||||
|
{...restProps}
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user