Skip to content

Commit d120d5e

Browse files
authored
Merge pull request #8465 from uinstinct/edit-gradient-border
feat: show gradient border in edit mode
2 parents 47baebf + d556463 commit d120d5e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gui/src/components/mainInput/ContinueInputBox.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,11 @@ function ContinueInputBox(props: ContinueInputBoxProps) {
115115
<div className={`relative flex flex-col px-2`}>
116116
{props.isMainInput && <Lump />}
117117
<GradientBorder
118-
loading={isStreaming && props.isLastUserInput ? 1 : 0}
118+
loading={isStreaming && (props.isLastUserInput || isInEdit) ? 1 : 0}
119119
borderColor={
120-
isStreaming && props.isLastUserInput ? undefined : vscBackground
120+
isStreaming && (props.isLastUserInput || isInEdit)
121+
? undefined
122+
: vscBackground
121123
}
122124
borderRadius={defaultBorderRadius}
123125
>

0 commit comments

Comments
 (0)