fix: ai buttons overlapping issue (#4621)
This commit is contained in:
parent
1c901446ab
commit
de7dad59f0
2 changed files with 31 additions and 29 deletions
|
|
@ -173,13 +173,15 @@ export const GptAssistantPopover: React.FC<Props> = (props) => {
|
|||
const generateResponseButtonText = isSubmitting
|
||||
? "Generating response..."
|
||||
: response === ""
|
||||
? "Generate response"
|
||||
: "Generate again";
|
||||
? "Generate response"
|
||||
: "Generate again";
|
||||
|
||||
return (
|
||||
<Popover as="div" className={`relative w-min text-left`}>
|
||||
<Popover.Button as={Fragment}>
|
||||
<button ref={setReferenceElement}>{button}</button>
|
||||
<button ref={setReferenceElement} className="flex items-center">
|
||||
{button}
|
||||
</button>
|
||||
</Popover.Button>
|
||||
<Transition
|
||||
show={isOpen}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue