Fix mobile dialog styling (#1363)
This commit is contained in:
parent
f134211bf9
commit
16a3aa7561
@ -28,12 +28,16 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 100%;
|
max-width: var(--max-width);
|
||||||
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: translateY(10px);
|
transform: translateY(10px);
|
||||||
animation: Modal__content_fade-in 0.1s ease-out 0.05s forwards;
|
animation: Modal__content_fade-in 0.1s ease-out 0.05s forwards;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
@media #{$media-query} {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes Modal__content_fade-in {
|
@keyframes Modal__content_fade-in {
|
||||||
|
@ -31,11 +31,13 @@ export function Modal(props: {
|
|||||||
<div className="Modal__background" onClick={props.onCloseRequest}></div>
|
<div className="Modal__background" onClick={props.onCloseRequest}></div>
|
||||||
<div
|
<div
|
||||||
className="Modal__content"
|
className="Modal__content"
|
||||||
style={{
|
style={
|
||||||
maxWidth: props.maxWidth,
|
{
|
||||||
|
"--max-width": `${props.maxWidth}px`,
|
||||||
maxHeight: "100%",
|
maxHeight: "100%",
|
||||||
overflowY: "scroll",
|
overflowY: "scroll",
|
||||||
}}
|
} as any
|
||||||
|
}
|
||||||
>
|
>
|
||||||
{props.children}
|
{props.children}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user