fix: Adjust inner padding style in PageLayout component
Some checks failed
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled

- Updated the overflowY style to always be 'auto', ensuring consistent scrolling behavior.
- Maintained conditional inner padding based on the styleState, enhancing layout responsiveness.
This commit is contained in:
CalciumIon 2024-12-12 23:34:14 +08:00
parent 1de933b60c
commit 3f501f4531

View File

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