fix(settings): 修复运营设置首次进入无法滚动
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/* Keep long settings forms scrollable while asynchronous sections mount. */
|
||||
.settings-page {
|
||||
/* PageLayout top padding (24px) + this page's top margin (60px). */
|
||||
height: calc(100vh - 84px - var(--content-top-offset, 0px));
|
||||
height: calc(100dvh - 84px - var(--content-top-offset, 0px));
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
|
||||
/* Override the global full-height tab rules only for the outer settings tabs. */
|
||||
.settings-page-tabs > .semi-tabs-content,
|
||||
.settings-page-tabs > .semi-tabs-content > .semi-tabs-pane,
|
||||
.settings-page-tabs > .semi-tabs-content > .semi-tabs-pane > div {
|
||||
height: auto !important;
|
||||
overflow: visible !important;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.settings-page {
|
||||
/* Mobile PageLayout uses 5px top padding. */
|
||||
height: calc(100vh - 65px - var(--content-top-offset, 0px));
|
||||
height: calc(100dvh - 65px - var(--content-top-offset, 0px));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user