fix: ai buttons overlapping issue (#4621)

This commit is contained in:
Aaryan Khandelwal 2024-05-31 20:28:28 +05:30 committed by GitHub
parent 1c901446ab
commit de7dad59f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 31 additions and 29 deletions

View file

@ -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}