fix(settings): 修复运营设置首次进入无法滚动

This commit is contained in:
zhanjunhao
2026-11-02 15:39:00 +08:00
parent 21d64e43ce
commit a9c31708c3
2 changed files with 32 additions and 1 deletions
+26
View File
@@ -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));
}
}