From 903cbc946b471fb365a0d7b312154c619d5011ef Mon Sep 17 00:00:00 2001 From: zhanjunhao <642307404@qq.com> Date: Mon, 2 Nov 2026 15:39:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(settings):=20=E4=BF=AE=E5=A4=8D=E8=BF=90?= =?UTF-8?q?=E8=90=A5=E8=AE=BE=E7=BD=AE=E9=A6=96=E6=AC=A1=E8=BF=9B=E5=85=A5?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Setting/Setting.css | 26 ++++++++++++++++++++++++++ src/pages/Setting/index.jsx | 7 ++++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 src/pages/Setting/Setting.css 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 ( -
+