🐛 fix(app): collapse button of agent working panel should be clickable (#13884)

This commit is contained in:
Neko 2026-04-17 00:29:22 +08:00 committed by GitHub
parent f1d615fa9f
commit fef6ed122a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,6 @@ import { PanelRightCloseIcon } from 'lucide-react';
import { memo } from 'react';
import { DESKTOP_HEADER_ICON_SIZE } from '@/const/layoutTokens';
import NavHeader from '@/features/NavHeader';
import RightPanel from '@/features/RightPanel';
import { useGlobalStore } from '@/store/global';
@ -29,21 +28,12 @@ const AgentWorkingSidebar = memo<AgentWorkingSidebarProps>(
onClose={() => onSelectDocument(null)}
/>
) : (
<Flexbox height={'100%'} width={'100%'}>
<NavHeader
showTogglePanelButton={false}
right={
<ActionIcon
icon={PanelRightCloseIcon}
size={DESKTOP_HEADER_ICON_SIZE}
onClick={() => toggleRightPanel(false)}
/>
}
style={{
paddingBlock: 8,
paddingInline: 8,
position: 'absolute',
}}
<Flexbox height={'100%'} style={{ position: 'relative' }} width={'100%'}>
<ActionIcon
icon={PanelRightCloseIcon}
size={DESKTOP_HEADER_ICON_SIZE}
style={{ position: 'absolute', right: 8, top: 8, zIndex: 1 }}
onClick={() => toggleRightPanel(false)}
/>
<Flexbox gap={8} height={'100%'} style={{ overflowY: 'auto' }} width={'100%'}>
{/* <AgentSummary /> */}