Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

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

Nekofef6ed122a8a
diff --git a/src/routes/(main)/agent/features/Conversation/WorkingSidebar/index.tsx b/src/routes/(main)/agent/features/Conversation/WorkingSidebar/index.tsx
index 9b2c9f9a102..994456669c6 100644
--- a/src/routes/(main)/agent/features/Conversation/WorkingSidebar/index.tsx
+++ b/src/routes/(main)/agent/features/Conversation/WorkingSidebar/index.tsx
@@ -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 /> */}