fix: settings modal (#74)

This commit is contained in:
zxhlyh 2023-05-17 19:05:51 +08:00 committed by GitHub
parent f8eefa31fe
commit 15f932573a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import { XMarkIcon } from '@heroicons/react/24/outline'
type IModal = {
className?: string
wrapperClassName?: string
isShow: boolean
onClose: () => void
title?: React.ReactNode
@ -15,6 +16,7 @@ type IModal = {
export default function Modal({
className,
wrapperClassName,
isShow,
onClose,
title,
@ -38,7 +40,7 @@ export default function Modal({
</Transition.Child>
<div className="fixed inset-0 overflow-y-auto">
<div className="flex min-h-full items-center justify-center p-4 text-center">
<div className={`flex min-h-full items-center justify-center p-4 text-center ${wrapperClassName}`}>
<Transition.Child
as={Fragment}
enter="ease-out duration-300"

View File

@ -75,6 +75,7 @@ export default function AccountSetting({
isShow
onClose={() => { }}
className={s.modal}
wrapperClassName='pt-[60px]'
>
<div className='flex'>
<div className='w-[200px] p-4 border border-gray-100'>