Merge pull request #6792 from uinstinct/tool-spacing-div

fix: spacing between divs on tool calls
This commit is contained in:
Dallin Romney 2025-08-05 13:52:21 -07:00 • committed by GitHub
commit dfbb1e2ba2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 12 deletions

View file

@ -110,21 +110,18 @@ export default function StepContainer(props: StepContainerProps) {
{props.isLast && <ThinkingIndicator historyItem={props.item} />}
</div>
{shouldRenderResponseAction() && (
// We want to occupy space in the DOM regardless of whether the actions are visible to avoid jank on stream complete
{shouldRenderResponseAction() && !isStreaming && (
<div
className={`mt-2 h-7 transition-opacity duration-300 ease-in-out ${isBeforeLatestSummary ? "opacity-35" : ""}`}
>
{!isStreaming && (
<ResponseActions
isTruncated={isTruncated}
onDelete={onDelete}
onContinueGeneration={onContinueGeneration}
index={props.index}
item={props.item}
isLast={props.isLast}
/>
)}
<ResponseActions
isTruncated={isTruncated}
onDelete={onDelete}
onContinueGeneration={onContinueGeneration}
index={props.index}
item={props.item}
isLast={props.isLast}
/>
</div>
)}

View file

@ -35,4 +35,5 @@ export const GradientBorder = styled.div<{
display: flex;
flex-direction: row;
align-items: center;
margin-top: ${(props) => (props.loading ? "8px" : "")};
`;