fix(ui): size of modal unstable for responsive content

This commit is contained in:
charlie
2021-12-14 16:55:14 +08:00
committed by Tienson Qin
parent 2bc96772c5
commit f94e01dc27

View File

@@ -6,6 +6,8 @@
-webkit-overflow-scrolling: touch;
.menu-link {
word-break: break-all;
.has-help {
display: flex;
align-items: center;
@@ -100,13 +102,23 @@
overflow: hidden;
background: var(--ls-secondary-background-color);
max-width: 96vw;
.panel-content {
overflow-y: auto;
max-width: 1024px;
width: 94vw;
max-height: 85vh;
padding: 2rem;
@screen md {
min-width: 760px;
width: auto;
.ls-card {
width: 740px;
min-height: 60vh;
max-height: 740px;
}
}
}
}
@@ -136,18 +148,6 @@ html.is-mobile {
}
}
@media (min-width: 1024px) {
.panel-content {
min-width: 820px;
}
.panel-content .ls-card {
width: 740px;
min-height: 60vh;
max-height: 740px;
}
}
.ui__button {
@apply items-center px-3 py-2 border border-transparent
text-sm leading-4 font-medium rounded-md text-white