Merge pull request #6792 from uinstinct/tool-spacing-div
fix: spacing between divs on tool calls
This commit is contained in:
commit
dfbb1e2ba2
2 changed files with 10 additions and 12 deletions
|
|
@ -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>
|
||||
)}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,4 +35,5 @@ export const GradientBorder = styled.div<{
|
|||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
margin-top: ${(props) => (props.loading ? "8px" : "")};
|
||||
`;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue