@ -28,12 +28,16 @@
position: relative;
z-index: 2;
width: 100%;
max-width: 100%;
max-width: var(--max-width);
opacity: 0;
transform: translateY(10px);
animation: Modal__content_fade-in 0.1s ease-out 0.05s forwards;
@media #{$media-query} {
}
@keyframes Modal__content_fade-in {
@ -31,11 +31,13 @@ export function Modal(props: {
<div className="Modal__background" onClick={props.onCloseRequest}></div>
<div
className="Modal__content"
style={{
maxWidth: props.maxWidth,
maxHeight: "100%",
overflowY: "scroll",
}}
style={
{
"--max-width": `${props.maxWidth}px`,
} as any
>
{props.children}
</div>