File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const ToastViewport = React.forwardRef<
1313 < ToastPrimitives . Viewport
1414 ref = { ref }
1515 className = { cn (
16- "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]" ,
16+ "fixed top-4 left-1/2 -translate-x-1/2 z-[100] flex max-h-screen w-full flex-col p-4 md:max-w-[420px]" ,
1717 className ,
1818 ) }
1919 { ...props }
@@ -22,7 +22,7 @@ const ToastViewport = React.forwardRef<
2222ToastViewport . displayName = ToastPrimitives . Viewport . displayName ;
2323
2424const toastVariants = cva (
25- "group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x -0 data-[swipe=end]:translate-x -[var(--radix-toast-swipe-end-x )] data-[swipe=move]:translate-x -[var(--radix-toast-swipe-move-x )] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[ state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from- top-full data-[state=open]:sm: slide-in-from-bottom -full" ,
25+ "group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-y -0 data-[swipe=end]:translate-y -[var(--radix-toast-swipe-end-y )] data-[swipe=move]:translate-y -[var(--radix-toast-swipe-move-y )] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-top-full data-[state=open]:slide-in-from-top -full" ,
2626 {
2727 variants : {
2828 variant : {
You can’t perform that action at this time.
0 commit comments