feat(modal): optimize the max width, height and alignment of layer

This commit is contained in:
unix
2020-06-30 13:47:07 +08:00
parent 59322e6b29
commit 3c23bbeb4f
2 changed files with 3 additions and 3 deletions

View File

@@ -31,8 +31,8 @@ const ModalWrapper: React.FC<React.PropsWithChildren<ModalWrapperProps>> = ({
{children}
<style jsx>{`
.wrapper {
max-width: 85vw;
max-height: 75vh;
max-width: 90vw;
max-height: 90vh;
width: ${width};
overflow: hidden;
display: flex;

View File

@@ -56,7 +56,7 @@ const Backdrop: React.FC<React.PropsWithChildren<BackdropProps>> = React.memo(
align-content: center;
align-items: center;
flex-direction: column;
justify-content: space-around;
justify-content: center;
height: 100vh;
width: 100vw;
overflow: auto;