feat: Implement chat page state management in layout and sidebar

- Added `isChatPage` state to the Style context to manage chat page layout.
- Updated `PageLayout` component to adjust padding based on the chat page state.
- Enhanced `SiderBar` component to dispatch chat page state changes when chat-related items are selected.
This commit is contained in:
CalciumIon
2024-12-11 21:17:46 +08:00
parent 60710d6c68
commit afb7b661ee
3 changed files with 10 additions and 1 deletions

View File

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