From 527ecd7d223a13133210d5a423442fb9aa47e1bd Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Fri, 3 May 2024 19:20:13 +0530 Subject: [PATCH] style: make edito height according to the content height (#4347) --- web/components/editor/rich-text-editor/rich-text-editor.tsx | 2 +- .../editor/rich-text-editor/rich-text-read-only-editor.tsx | 2 +- web/components/inbox/content/issue-root.tsx | 2 +- web/components/inbox/modals/create-edit-modal/create-root.tsx | 2 +- web/components/inbox/modals/create-edit-modal/edit-root.tsx | 2 +- .../inbox/modals/create-edit-modal/issue-description.tsx | 2 +- web/components/issues/issue-detail/main-content.tsx | 2 +- web/components/issues/issue-modal/form.tsx | 2 +- web/components/issues/peek-overview/issue-detail.tsx | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/web/components/editor/rich-text-editor/rich-text-editor.tsx b/web/components/editor/rich-text-editor/rich-text-editor.tsx index 5b9df4bec..0885fc0dd 100644 --- a/web/components/editor/rich-text-editor/rich-text-editor.tsx +++ b/web/components/editor/rich-text-editor/rich-text-editor.tsx @@ -51,7 +51,7 @@ export const RichTextEditor = forwardRef ); }); diff --git a/web/components/editor/rich-text-editor/rich-text-read-only-editor.tsx b/web/components/editor/rich-text-editor/rich-text-read-only-editor.tsx index 1415bc098..4aead5469 100644 --- a/web/components/editor/rich-text-editor/rich-text-read-only-editor.tsx +++ b/web/components/editor/rich-text-editor/rich-text-read-only-editor.tsx @@ -20,7 +20,7 @@ export const RichTextReadOnlyEditor = React.forwardRef ); } diff --git a/web/components/inbox/content/issue-root.tsx b/web/components/inbox/content/issue-root.tsx index 2a6166ccb..fd07da01a 100644 --- a/web/components/inbox/content/issue-root.tsx +++ b/web/components/inbox/content/issue-root.tsx @@ -141,7 +141,7 @@ export const InboxIssueMainContent: React.FC = observer((props) => { disabled={!isEditable} issueOperations={issueOperations} setIsSubmitting={(value) => setIsSubmitting(value)} - containerClassName="-ml-3 border-none" + containerClassName="-ml-3 !mb-6 border-none" /> )} diff --git a/web/components/inbox/modals/create-edit-modal/create-root.tsx b/web/components/inbox/modals/create-edit-modal/create-root.tsx index 90a0ce2a2..010884451 100644 --- a/web/components/inbox/modals/create-edit-modal/create-root.tsx +++ b/web/components/inbox/modals/create-edit-modal/create-root.tsx @@ -133,7 +133,7 @@ export const InboxIssueCreateRoot: FC = observer((props) data={formData} handleData={handleFormData} editorRef={descriptionEditorRef} - containerClassName="border-[0.5px] border-custom-border-200 py-3" + containerClassName="border-[0.5px] border-custom-border-200 py-3 min-h-[150px]" />
diff --git a/web/components/inbox/modals/create-edit-modal/edit-root.tsx b/web/components/inbox/modals/create-edit-modal/edit-root.tsx index fb5da771a..90bb0e258 100644 --- a/web/components/inbox/modals/create-edit-modal/edit-root.tsx +++ b/web/components/inbox/modals/create-edit-modal/edit-root.tsx @@ -138,7 +138,7 @@ export const InboxIssueEditRoot: FC = observer((props) => { data={formData} handleData={handleFormData} editorRef={descriptionEditorRef} - containerClassName="border-[0.5px] border-custom-border-200 py-3" + containerClassName="border-[0.5px] border-custom-border-200 py-3 min-h-[150px]" />
diff --git a/web/components/inbox/modals/create-edit-modal/issue-description.tsx b/web/components/inbox/modals/create-edit-modal/issue-description.tsx index 98d2b8efa..2c9a9cfd2 100644 --- a/web/components/inbox/modals/create-edit-modal/issue-description.tsx +++ b/web/components/inbox/modals/create-edit-modal/issue-description.tsx @@ -22,7 +22,7 @@ type TInboxIssueDescription = { // TODO: have to implement GPT Assistance export const InboxIssueDescription: FC = observer((props) => { - const {containerClassName, workspaceSlug, projectId, workspaceId, data, handleData, editorRef } = props; + const { containerClassName, workspaceSlug, projectId, workspaceId, data, handleData, editorRef } = props; // hooks const { loader } = useProjectInbox(); diff --git a/web/components/issues/issue-detail/main-content.tsx b/web/components/issues/issue-detail/main-content.tsx index 309f86bcf..a6395c963 100644 --- a/web/components/issues/issue-detail/main-content.tsx +++ b/web/components/issues/issue-detail/main-content.tsx @@ -98,7 +98,7 @@ export const IssueMainContent: React.FC = observer((props) => { disabled={!isEditable} issueOperations={issueOperations} setIsSubmitting={(value) => setIsSubmitting(value)} - containerClassName="-ml-3 border-none" + containerClassName="-ml-3 !mb-6 border-none" /> {/* )} */} diff --git a/web/components/issues/issue-modal/form.tsx b/web/components/issues/issue-modal/form.tsx index 6c10c39dc..59565eb56 100644 --- a/web/components/issues/issue-modal/form.tsx +++ b/web/components/issues/issue-modal/form.tsx @@ -480,7 +480,7 @@ export const IssueFormRoot: FC = observer((props) => { ref={editorRef} tabIndex={getTabIndex("description_html")} placeholder={getDescriptionPlaceholder} - containerClassName="border-[0.5px] border-custom-border-200 py-3" + containerClassName="border-[0.5px] border-custom-border-200 py-3 min-h-[150px]" /> )} /> diff --git a/web/components/issues/peek-overview/issue-detail.tsx b/web/components/issues/peek-overview/issue-detail.tsx index a13625265..6d4718fe7 100644 --- a/web/components/issues/peek-overview/issue-detail.tsx +++ b/web/components/issues/peek-overview/issue-detail.tsx @@ -82,7 +82,7 @@ export const PeekOverviewIssueDetails: FC = observer( disabled={disabled} issueOperations={issueOperations} setIsSubmitting={(value) => setIsSubmitting(value)} - containerClassName="-ml-3 border-none" + containerClassName="-ml-3 !mb-6 border-none" /> {currentUser && (