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(conversation): center the submitting status row in the intervention tray (#20551)

Arvin Xuba262357b9b9
diff --git a/src/features/Conversation/InterventionBar/index.tsx b/src/features/Conversation/InterventionBar/index.tsx
index 2d98726827b..7936ec70d78 100644
--- a/src/features/Conversation/InterventionBar/index.tsx
+++ b/src/features/Conversation/InterventionBar/index.tsx
@@ -78,6 +78,11 @@ const InterventionBar = memo<InterventionBarProps>(({ interventions }) => {
// The card's action row — Stop sits beside Submit inside `ApprovalActions`
// and the whole row portals in here.
maxHeight={'50vh' as any}
+ // The editor body's 64px minimum is sized for the composer this bar
+ // replaces. Inherited here, a one-line status leaves ~11px of empty tray
+ // below it, which parks that status above the tray's center. Let the tray
+ // size to its content: a card taller than the old minimum is unaffected.
+ minHeight={0}
resize={false}
>
{hasMultipleCards && (