Fix toast styling (#1893)

This commit is contained in:
Brandon McConnell
2025-08-03 17:02:08 -04:00
committed by GitHub
parent 99bc631a4f
commit 838057d564
3 changed files with 7 additions and 6 deletions

View File

@@ -19,6 +19,7 @@ const Toaster = () => {
loading: <Loader2 className="stroke-muted-foreground h-[17px] w-[17px] animate-spin" />,
}}
toastOptions={{
unstyled: true,
classNames: {
title: 'title flex-1 justify-center text-black! dark:text-white! text-sm leading-none',
description: 'text-black! dark:text-white! text-xs',

View File

@@ -107,7 +107,7 @@
"react-wrap-balancer": "^1.1.1",
"recharts": "^2.15.1",
"resend": "4.1.2",
"sonner": "1.7.4",
"sonner": "2.0.6",
"superjson": "catalog:",
"tailwind-merge": "3.0.2",
"tailwindcss-animate": "1.0.7",

10
pnpm-lock.yaml generated
View File

@@ -378,8 +378,8 @@ importers:
specifier: 4.1.2
version: 4.1.2(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
sonner:
specifier: 1.7.4
version: 1.7.4(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
specifier: 2.0.6
version: 2.0.6(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
superjson:
specifier: 'catalog:'
version: 2.2.2
@@ -8853,8 +8853,8 @@ packages:
sonic-boom@4.2.0:
resolution: {integrity: sha512-INb7TM37/mAcsGmc9hyyI6+QR3rR1zVRu36B0NeGXKnOOLiZOfER5SA+N7X7k3yUYRzLWafduTDvJAfDswwEww==}
sonner@1.7.4:
resolution: {integrity: sha512-DIS8z4PfJRbIyfVFDVnK9rO3eYDtse4Omcm6bt0oEr5/jtLgysmjuBl1frJ9E/EQZrFmKx2A8m/s5s9CRXIzhw==}
sonner@2.0.6:
resolution: {integrity: sha512-yHFhk8T/DK3YxjFQXIrcHT1rGEeTLliVzWbO0xN8GberVun2RiBnxAjXAYpZrqwEVHBG9asI/Li8TAAhN9m59Q==}
peerDependencies:
react: ^18.0.0 || ^19.0.0 || ^19.0.0-rc
react-dom: ^18.0.0 || ^19.0.0 || ^19.0.0-rc
@@ -18806,7 +18806,7 @@ snapshots:
dependencies:
atomic-sleep: 1.0.0
sonner@1.7.4(react-dom@19.1.0(react@19.1.0))(react@19.1.0):
sonner@2.0.6(react-dom@19.1.0(react@19.1.0))(react@19.1.0):
dependencies:
react: 19.1.0
react-dom: 19.1.0(react@19.1.0)