Fix mobile styles

This commit is contained in:
Robert Long
2021-12-10 10:54:18 -08:00
parent fc3960ce63
commit 9174369fb5
13 changed files with 277 additions and 260 deletions

View File

@@ -14,7 +14,7 @@ import styles from "./Modal.module.css";
import classNames from "classnames";
export function Modal(props) {
const { title, children, className } = props;
const { title, children, className, mobileFullScreen } = props;
const modalRef = useRef();
const { overlayProps, underlayProps } = useOverlay(props, modalRef);
usePreventScroll();
@@ -34,7 +34,11 @@ export function Modal(props) {
{...dialogProps}
{...modalProps}
ref={modalRef}
className={classNames(styles.modal, className)}
className={classNames(
styles.modal,
{ [styles.mobileFullScreen]: mobileFullScreen },
className
)}
>
<div className={styles.modalHeader}>
<h3 {...titleProps}>{title}</h3>