1
0
Fork 0

chore(shared): Mobile tweaks

This commit is contained in:
Joost De Cock 2023-08-30 10:44:35 +02:00
parent a60fb0204c
commit 00513958d0
6 changed files with 41 additions and 28 deletions

View file

@ -20,6 +20,7 @@ export const ModalWrapper = ({
keepOpenOnClick = false,
slideFrom = 'left',
keepOpenOnSwipe = false,
fullWidth = false,
}) => {
const { clearModal } = useContext(ModalContext)
const [animate, setAnimate] = useState('in')
@ -68,7 +69,9 @@ export const ModalWrapper = ({
children
) : (
<div
className={`bg-base-100 p-4 lg:px-8 lg:rounded-lg lg:shadow-lg max-h-full overflow-auto`}
className={`bg-base-100 p-4 lg:px-8 lg:rounded-lg lg:shadow-lg max-h-full overflow-auto ${
fullWidth ? 'w-full' : ''
}`}
>
{children}
</div>