fix(ui): move margin from top to bottom in ToolGroupMessage (#17198)

This commit is contained in:
imadraude
2026-02-18 23:51:03 +02:00
committed by GitHub
parent f961e0d6b1
commit e7f97dfa44
7 changed files with 55 additions and 53 deletions
@@ -100,10 +100,11 @@ export const ToolGroupMessage: React.FC<ToolGroupMessageProps> = ({
displayStatus !== ToolCallStatus.Confirming
);
}),
[toolCalls],
);
const staticHeight = /* border */ 2 + /* marginBottom */ 1;
const staticHeight = /* border */ 2;
// If all tools are filtered out (e.g., in-progress AskUser tools, confirming tools),
// only render if we need to close a border from previous
@@ -147,6 +148,7 @@ export const ToolGroupMessage: React.FC<ToolGroupMessageProps> = ({
*/
width={terminalWidth}
paddingRight={TOOL_MESSAGE_HORIZONTAL_MARGIN}
marginBottom={1}
>
{visibleToolCalls.map((tool, index) => {
const isFirst = index === 0;