mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
🎨 Remove lazy loading from images and update sidebar badge classes for consistency
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
Toaster as Sonner,
|
||||
type ToasterProps as SonnerProps,
|
||||
} from "svelte-sonner";
|
||||
|
||||
import { cn } from "@/utils/cn";
|
||||
import { mode } from "mode-watcher";
|
||||
|
||||
let { ...restProps }: SonnerProps = $props();
|
||||
@@ -10,12 +12,19 @@
|
||||
|
||||
<Sonner
|
||||
theme={mode.current}
|
||||
class="toaster group"
|
||||
position="bottom-center"
|
||||
toastOptions={{
|
||||
unstyled: true,
|
||||
classes: {
|
||||
toast:
|
||||
"group toast dark:group-[.toaster]:bg-neutral-900 group-[.toaster]:font-sans",
|
||||
description: "group-[.toast]:text-xs font-mono",
|
||||
toast: cn(
|
||||
"w-full max-w-md",
|
||||
"flex items-center gap-3 p-4 rounded-lg shadow-md font-sans",
|
||||
"bg-neutral-50 dark:bg-neutral-900",
|
||||
"border border-neutral-200 dark:border-neutral-800",
|
||||
"text-neutral-900 dark:text-neutral-100",
|
||||
),
|
||||
title: "font-medium",
|
||||
description: "text-sm text-pretty text-neutral-600 dark:text-neutral-400",
|
||||
},
|
||||
}}
|
||||
{...restProps}
|
||||
|
||||
Reference in New Issue
Block a user