fix/scroll-mobile-on-dialog (#2693)

* Added mobile first css props for scroll

* Fix submodule previous add

* Fix mobile first css for dialog

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/2691/head^2
alannnc 2022-05-06 13:34:48 -05:00 committed by GitHub
parent 8c9096b55b
commit 46690fa72b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

@ -1 +1 @@
Subproject commit cf71a8b47ec9d37da7e4facb61356a293cb0bd13
Subproject commit 943cd10de1f6661273d2ec18acdaa93118852714

View File

@ -75,7 +75,8 @@ export const DialogContent = React.forwardRef<HTMLDivElement, DialogContentProps
: props.size == "lg"
? "p-6 sm:max-w-[70rem]"
: "p-6 sm:max-w-[35rem]",
`${props.className}`
"h-[80vh] max-h-[560px] overflow-scroll overscroll-auto md:h-auto md:max-h-[inherit]",
`${props.className || ""}`
)}
ref={forwardedRef}>
{children}