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(agent-tasks): let the task drawer yield its bottom edge to a toast (#19364)

Innei0166fc1a260d
diff --git a/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/index.tsx b/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/index.tsx
index 042d09c7c23..43435ad25a4 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/index.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/index.tsx
@@ -328,7 +328,10 @@ const TopicChatDrawer = memo(() => {
body: { padding: 0 },
panel: {
background: cssVar.colorBgContainer,
- maxHeight: 'calc(100dvh - 16px)',
+ // Leave room for whatever the panel reserves when it yields the
+ // bottom edge to a toast; the library's own cap assumes a 16px
+ // offset and this panel sits at 8.
+ maxHeight: 'calc(100dvh - 16px - var(--floating-panel-reserve-block-end, 0px))',
},
title: {
boxSizing: 'border-box',