mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 17:47:27 +00:00
🐛 fix(app): collapse button of agent working panel should be clickable (#13884)
This commit is contained in:
parent
f1d615fa9f
commit
fef6ed122a
1 changed files with 6 additions and 16 deletions
|
|
@ -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 /> */}
|
||||
|
|
|
|||
Loading…
Reference in a new issue