From 1c4f983c93e200c2dd771320457fbb31162d6743 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 25 Jul 2025 11:56:18 +0530 Subject: [PATCH] fix: spacing between divs on tool calls --- .../StepContainer/StepContainer.tsx | 21 ++++++++----------- .../components/mainInput/GradientBorder.tsx | 1 + 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/gui/src/components/StepContainer/StepContainer.tsx b/gui/src/components/StepContainer/StepContainer.tsx index 84d681936..d83d7d9e8 100644 --- a/gui/src/components/StepContainer/StepContainer.tsx +++ b/gui/src/components/StepContainer/StepContainer.tsx @@ -110,21 +110,18 @@ export default function StepContainer(props: StepContainerProps) { {props.isLast && } - {shouldRenderResponseAction() && ( - // We want to occupy space in the DOM regardless of whether the actions are visible to avoid jank on stream complete + {shouldRenderResponseAction() && !isStreaming && (
- {!isStreaming && ( - - )} +
)} diff --git a/gui/src/components/mainInput/GradientBorder.tsx b/gui/src/components/mainInput/GradientBorder.tsx index 6cbf263d5..c3b80ccca 100644 --- a/gui/src/components/mainInput/GradientBorder.tsx +++ b/gui/src/components/mainInput/GradientBorder.tsx @@ -35,4 +35,5 @@ export const GradientBorder = styled.div<{ display: flex; flex-direction: row; align-items: center; + margin-top: ${(props) => (props.loading ? "8px" : "")}; `;