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(desktop): take the task topic drawer header out of the drag region (#22831)

Arvin Xu2895043dd040
diff --git a/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/index.tsx b/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/index.tsx
index 3fb898fe6cf..1da382eff4e 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/index.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/index.tsx
@@ -47,6 +47,7 @@ import { useTaskStore } from '@/store/task';
import { taskActivitySelectors, taskDetailSelectors } from '@/store/task/selectors';
import { useUserStore } from '@/store/user';
import { authSelectors } from '@/store/user/selectors';
+import { electronStylish } from '@/styles/electron';
import { isForbiddenError } from '@/utils/forbiddenError';
import AssigneeAvatar from '../../features/AssigneeAvatar';
@@ -330,6 +331,7 @@ const TopicChatDrawer = memo<TopicChatDrawerProps>(({ defaultExpanded = false })
<Flexbox
horizontal
align={'center'}
+ className={electronStylish.nodrag}
flex={1}
gap={8}
style={{ maxWidth: '100%', minWidth: 0, overflow: 'hidden' }}
@@ -371,7 +373,7 @@ const TopicChatDrawer = memo<TopicChatDrawerProps>(({ defaultExpanded = false })
);
const actions = !topicId ? null : (
- <Flexbox horizontal align={'center'} gap={4}>
+ <Flexbox horizontal align={'center'} className={electronStylish.nodrag} gap={4}>
<ActionIcon
icon={expanded ? Minimize2 : Maximize2}
size={SHARE_ICON_SIZE}