Skip to content

Commit

Permalink
Merge pull request #44 from junwen-k/refactor/use-1/2-tailwind-class
Browse files Browse the repository at this point in the history
refactor: use native 1/2 tailwind class
  • Loading branch information
ecklf authored Sep 20, 2023
2 parents 58bd6c0 + 3067c52 commit 3246118
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/components/alert-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const AlertDialog = (props: AlertDialogProps) => {
className={clsx(
"fixed z-50",
"w-[95vw] max-w-md rounded-lg p-4 md:w-full",
"top-[50%] left-[50%] -translate-x-[50%] -translate-y-[50%]",
"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",
"bg-white dark:bg-gray-800",
"focus:outline-none focus-visible:ring focus-visible:ring-purple-500 focus-visible:ring-opacity-75"
)}
Expand Down
2 changes: 1 addition & 1 deletion demo/components/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const Dialog = (props: DialogProps) => {
className={clsx(
"fixed z-50",
"w-[95vw] max-w-md rounded-lg p-4 md:w-full",
"top-[50%] left-[50%] -translate-x-[50%] -translate-y-[50%]",
"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",
"bg-white dark:bg-gray-800",
"focus:outline-none focus-visible:ring focus-visible:ring-purple-500 focus-visible:ring-opacity-75"
)}
Expand Down

0 comments on commit 3246118

Please sign in to comment.