Просмотр исходного кода

fix: Adjust inner padding style in PageLayout component

- Updated the overflowY style to always be 'auto', ensuring consistent scrolling behavior.
- Maintained conditional inner padding based on the styleState, enhancing layout responsiveness.
CalciumIon 1 год назад
Родитель
Сommit
2a6f3ad27f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      web/src/components/PageLayout.js

+ 1 - 1
web/src/components/PageLayout.js

@@ -23,7 +23,7 @@ const PageLayout = () => {
         </Sider>
         <Layout>
           <Content
-            style={{ overflowY: styleState.shouldInnerPadding?'auto':'hidden', padding: styleState.shouldInnerPadding? '24px': '0' }}
+            style={{ overflowY: 'auto', padding: styleState.shouldInnerPadding? '24px': '0' }}
           >
             <App />
           </Content>