This commit is contained in:
2026-03-16 10:13:01 -04:00
parent 5cb17bace7
commit c46dcb440d
4 changed files with 36 additions and 10 deletions

View File

@@ -68,7 +68,11 @@ export function Toast({ id, type, message, duration = 5000, onClose }: ToastProp
return (
<div
className={`${baseStyles} ${typeStyles[type]} ${isAnimatingOut ? 'opacity-0 translate-x-full' : 'opacity-100 translate-x-0'}`}
className={`${baseStyles} ${typeStyles[type]} ${
isAnimatingOut
? 'opacity-0 translate-x-full'
: 'animate-slideInRight opacity-100'
}`}
>
{icons[type]}
<p className={`flex-1 text-sm font-medium ${textStyles[type]}`}>

View File

@@ -59,7 +59,7 @@ function ToastContainer({ toasts }: ToastContainerProps) {
}
return (
<div className="fixed top-4 right-4 z-50 flex flex-col gap-2 max-w-sm w-full pointer-events-none">
<div className="fixed bottom-4 right-4 z-50 flex flex-col gap-2 max-w-sm w-full pointer-events-none">
<div className="pointer-events-auto">
{toasts.map((toast) => (
<Toast key={toast.id} {...toast} />