From de7dad59f02ce1778685488fc98271e3023a2046 Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Fri, 31 May 2024 20:28:28 +0530 Subject: [PATCH] fix: ai buttons overlapping issue (#4621) --- .../core/modals/gpt-assistant-popover.tsx | 8 +-- web/components/issues/issue-modal/form.tsx | 52 +++++++++---------- 2 files changed, 31 insertions(+), 29 deletions(-) diff --git a/web/components/core/modals/gpt-assistant-popover.tsx b/web/components/core/modals/gpt-assistant-popover.tsx index a67b13f7e..5fd992a28 100644 --- a/web/components/core/modals/gpt-assistant-popover.tsx +++ b/web/components/core/modals/gpt-assistant-popover.tsx @@ -173,13 +173,15 @@ export const GptAssistantPopover: React.FC = (props) => { const generateResponseButtonText = isSubmitting ? "Generating response..." : response === "" - ? "Generate response" - : "Generate again"; + ? "Generate response" + : "Generate again"; return ( - + = observer((props) => { /> {errors?.name?.message} -
+
{data?.description_html === undefined ? ( @@ -436,11 +436,33 @@ export const IssueFormRoot: FC = observer((props) => { ) : ( <> -
+ ( + { + onChange(description_html); + handleFormChange(); + }} + onEnterKeyPress={() => submitBtnRef?.current?.click()} + ref={editorRef} + tabIndex={getTabIndex("description_html")} + placeholder={getDescriptionPlaceholder} + containerClassName="pt-3 min-h-[150px] max-h-64 overflow-y-auto vertical-scrollbar scrollbar-sm" + /> + )} + /> +
{issueName && issueName.trim() !== "" && config?.has_openai_configured && (
- ( - { - onChange(description_html); - handleFormChange(); - }} - onEnterKeyPress={() => submitBtnRef?.current?.click()} - ref={editorRef} - tabIndex={getTabIndex("description_html")} - placeholder={getDescriptionPlaceholder} - containerClassName="border-[0.5px] border-custom-border-200 py-3 min-h-[150px]" - /> - )} - /> )}