Fix styles for confirm delete modal (#8312)

The background for the "confirm delete" modal was offset - the fix is to add `inset-0`.

# Important Notes
None
This commit is contained in:
somebody1234 2023-11-21 16:51:15 +10:00 committed by GitHub
parent 5e1a3124dc
commit feb59be0a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ export default function ConfirmDeleteModal(props: ConfirmDeleteModalProps) {
element?.focus()
}}
tabIndex={-1}
className="relative flex flex-col gap-2 rounded-2xl w-96 px-4 p-2 pointer-events-auto before:absolute before:rounded-2xl before:bg-frame-selected before:backdrop-blur-3xl before:w-full before:h-full"
className="relative flex flex-col gap-2 rounded-2xl w-96 px-4 p-2 pointer-events-auto before:absolute before:inset-0 before:rounded-2xl before:bg-frame-selected before:backdrop-blur-3xl before:w-full before:h-full"
onKeyDown={event => {
if (event.key !== 'Escape') {
event.stopPropagation()