fix: editor content being hidden under keyboard on mobile (#1410)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { classNames } from '@/Utils/ConcatenateClassNames'
|
||||
import { FunctionComponent } from 'react'
|
||||
import { Fragment, FunctionComponent } from 'react'
|
||||
|
||||
type Props = {
|
||||
className?: string
|
||||
@@ -11,10 +11,10 @@ const ModalDialogButtons: FunctionComponent<Props> = ({ children, className }) =
|
||||
<div className={classNames('flex items-center justify-end px-4 py-4', className)}>
|
||||
{children != undefined && Array.isArray(children)
|
||||
? children.map((child, idx, arr) => (
|
||||
<>
|
||||
<Fragment key={idx}>
|
||||
{child}
|
||||
{idx < arr.length - 1 ? <div className="min-w-3" /> : undefined}
|
||||
</>
|
||||
</Fragment>
|
||||
))
|
||||
: children}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user