Skip to content

Commit

Permalink
AI Assistant: change main action buttons style and behavior (#34370)
Browse files Browse the repository at this point in the history
* optimize style declaration

* always use inputValue
  • Loading branch information
CGastrell committed Dec 18, 2023
1 parent a1d8824 commit 6c59ecc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@
width: 0;
opacity: 0;

&.is-requesting {
opacity: 1;
width: 38px;
}

&.is-suggesting {
&.is-requesting, &.is-suggesting {
opacity: 1;
width: 38px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export default function AiAssistantBar( {
<AIControl
ref={ inputRef }
disabled={ siteRequireUpgrade || ! connected }
value={ isLoading ? undefined : inputValue }
value={ inputValue }
placeholder={ isLoading ? loadingPlaceholder : placeholder }
onChange={ setInputValue }
onSend={ handleSend }
Expand Down

0 comments on commit 6c59ecc

Please sign in to comment.