Skip to content

Commit

Permalink
add backdrop to recorder
Browse files Browse the repository at this point in the history
  • Loading branch information
MarconLP committed Jul 9, 2023
1 parent 60516f4 commit a74eb37
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/components/VideoRecordModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ export default function VideoRecordModal() {
return (
<Transition appear show={open} as={Fragment}>
<Dialog as="div" className="relative z-10" onClose={handleClose}>
{/* backdrop */}
<Transition.Child
as={Fragment}
enter="ease-out duration-300"
enterFrom="opacity-0"
enterTo="opacity-100"
leave="ease-in duration-200"
leaveFrom="opacity-100"
leaveTo="opacity-0"
>
<div className="fixed inset-0 bg-black bg-opacity-25" />
</Transition.Child>

<div className="fixed inset-0 overflow-y-auto">
<div className="flex min-h-full items-center justify-center p-4 text-center">
<Transition.Child
Expand Down

1 comment on commit a74eb37

@vercel
Copy link

@vercel vercel bot commented on a74eb37 Jul 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.