diff --git a/src/components/Modal/Modal.js b/src/components/Modal/Modal.js index 5a1b78b76..3fa8234d9 100644 --- a/src/components/Modal/Modal.js +++ b/src/components/Modal/Modal.js @@ -10,6 +10,8 @@ import { ButtonIcon } from '../Button/ButtonIcon' import EscapeOutside from '../EscapeOutside/EscapeOutside' import RootPortal from '../RootPortal/RootPortal' +const SPACE_AROUND = 4 * GU + function Modal({ children, onClose, @@ -68,7 +70,7 @@ function Modal({ >
Math.min(viewport.width - 6 * GU, 600), + width: viewport => Math.min(viewport.width - SPACE_AROUND * 2, 600), } export default Modal