Skip to content

Commit

Permalink
Fix Toast weird position and styles
Browse files Browse the repository at this point in the history
  • Loading branch information
niktekusho committed Jul 25, 2024
1 parent 9438041 commit ad8ad43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/ArtifactsRulePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,10 @@ Thank you so much for your help! 🙌
toast({
title: "Bug found!",
description: toastDesc,
// duration: 1_000_000,
variant: "destructive",
action: toastAction,
className: "grid gap-4 space-x-0",
className:
"grid gap-4 items-center justify-stretch p-6 space-x-0 sm:grid-cols-2 md:grid-cols-1",
});
}
2 changes: 1 addition & 1 deletion src/components/ui/toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const ToastViewport = React.forwardRef<
<ToastPrimitives.Viewport
ref={ref}
className={cn(
"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]",
"fixed top-0 left-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] md:left-auto",
className
)}
{...props}
Expand Down

0 comments on commit ad8ad43

Please sign in to comment.