diff --git a/src/pages/Setting/Setting.css b/src/pages/Setting/Setting.css new file mode 100644 index 00000000..1d15de01 --- /dev/null +++ b/src/pages/Setting/Setting.css @@ -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)); + } +} diff --git a/src/pages/Setting/index.jsx b/src/pages/Setting/index.jsx index 61ca1292..445df00f 100644 --- a/src/pages/Setting/index.jsx +++ b/src/pages/Setting/index.jsx @@ -65,6 +65,7 @@ import CustomerServiceSetting from '../../components/settings/CustomerServiceSet import TutorialVideoSetting from '../../components/settings/TutorialVideoSetting'; import AmountOptionsManager from './AmountOptionsManager'; import SettingsMembership from './Payment/SettingsMembership'; +import './Setting.css'; const Setting = () => { const { t } = useTranslation(); @@ -308,10 +309,14 @@ const Setting = () => { } }, [location.search, statusState?.status?.AdminDelegatedSettingTabs]); return ( -
+