From 0ab03c963c28807722f00238f2be656167afecb4 Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Wed, 3 Apr 2024 20:57:44 +0530 Subject: [PATCH] [WEB-869] chore: fix assignee and parent ui inconsistency in create issue modal. (#4113) --- web/components/issues/issue-modal/form.tsx | 63 ++++++++++------------ 1 file changed, 29 insertions(+), 34 deletions(-) diff --git a/web/components/issues/issue-modal/form.tsx b/web/components/issues/issue-modal/form.tsx index b581522e6..88d6c3877 100644 --- a/web/components/issues/issue-modal/form.tsx +++ b/web/components/issues/issue-modal/form.tsx @@ -541,7 +541,7 @@ export const IssueFormRoot: FC = observer((props) => { handleFormChange(); }} buttonVariant={value?.length > 0 ? "transparent-without-text" : "border-with-text"} - buttonClassName={value?.length > 0 ? "hover:bg-transparent px-0" : ""} + buttonClassName={value?.length > 0 ? "hover:bg-transparent" : ""} placeholder="Assignees" multiple tabIndex={getTabIndex("assignee_ids")} @@ -663,33 +663,23 @@ export const IssueFormRoot: FC = observer((props) => { )} /> )} - - {watch("parent_id") ? ( -
- - - {selectedParentIssue && - `${selectedParentIssue.project__identifier}- - ${selectedParentIssue.sequence_id}`} - -
- ) : ( -
- - Add parent -
- )} - - } - placement="bottom-start" - tabIndex={getTabIndex("parent_id")} - > - {watch("parent_id") ? ( + {watch("parent_id") ? ( + + + + {selectedParentIssue && + `${selectedParentIssue.project__identifier}-${selectedParentIssue.sequence_id}`} + + + } + placement="bottom-start" + tabIndex={getTabIndex("parent_id")} + > <> setParentIssueListModalOpen(true)}> Change parent issue @@ -704,12 +694,17 @@ export const IssueFormRoot: FC = observer((props) => { Remove parent issue - ) : ( - setParentIssueListModalOpen(true)}> - Select parent Issue - - )} - +
+ ) : ( + + )}