From 3998b849b41e22ecc64995c58a03552488103c5c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 9 Sep 2025 08:53:36 +0000 Subject: [PATCH] fix: prevent skeleton screen overflow causing horizontal scrollbar Co-authored-by: afc163 <507615+afc163@users.noreply.github.com> --- public/scripts/loading.js | 10 ++++++++++ src/global.less | 1 + src/loading.tsx | 10 +++++++++- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/public/scripts/loading.js b/public/scripts/loading.js index a4fdb3d5..b1131141 100644 --- a/public/scripts/loading.js +++ b/public/scripts/loading.js @@ -13,10 +13,14 @@ height: 100%; margin: 0; padding: 0; + overflow-x: hidden; + box-sizing: border-box; } #root { background-repeat: no-repeat; background-size: 100% auto; + max-width: 100%; + box-sizing: border-box; } .loading-title { @@ -34,6 +38,8 @@ align-items: center; justify-content: center; padding: 26px; + max-width: 100%; + box-sizing: border-box; } .ant-spin { position: absolute; @@ -179,6 +185,10 @@ justify-content: center; height: 100%; min-height: 362px; + max-width: 100%; + overflow-x: hidden; + box-sizing: border-box; + padding: 20px; ">
diff --git a/src/global.less b/src/global.less index 1959f4f7..f525250c 100644 --- a/src/global.less +++ b/src/global.less @@ -45,6 +45,7 @@ body, height: 100%; margin: 0; padding: 0; + overflow-x: hidden; font-family: AlibabaSans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; diff --git a/src/loading.tsx b/src/loading.tsx index fd4f25bb..b2eadd48 100644 --- a/src/loading.tsx +++ b/src/loading.tsx @@ -1,7 +1,15 @@ import { Skeleton } from 'antd'; const Loading: React.FC = () => ( - + ); export default Loading;