fix: Update label truncation logic in Playground and adjust sider visibility in HeaderBar

- Modified the group label truncation in the Playground component to shorten labels exceeding 16 characters for better mobile display.
- Corrected the conditional rendering logic in the HeaderBar to toggle the sider visibility based on its current state, enhancing user interface responsiveness.
This commit is contained in:
CalciumIon
2024-12-12 20:39:49 +08:00
parent e17f36e7b7
commit d241e4fe29
2 changed files with 3 additions and 3 deletions

View File

@@ -148,7 +148,7 @@ const HeaderBar = () => {
logo: (
<>
{
styleState.showSider ?
!styleState.showSider ?
<Button icon={<IconMenu />} theme="light" aria-label="展开侧边栏" onClick={
() => styleDispatch({ type: 'SET_SIDER', payload: true })
} />: