mirror of
https://github.com/zhigang1992/react.git
synced 2026-01-31 09:08:41 +08:00
feat(modal): optimize the max width, height and alignment of layer
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user