From 3a44d4bf35ff1dc4b2ae7393bad7a19b2be04160 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Thu, 19 Oct 2023 14:02:42 +0530 Subject: [PATCH] chore: bulk delete modal alignment fix (#2483) --- .../core/modals/bulk-delete-issues-modal.tsx | 184 +++++++++--------- 1 file changed, 93 insertions(+), 91 deletions(-) diff --git a/web/components/core/modals/bulk-delete-issues-modal.tsx b/web/components/core/modals/bulk-delete-issues-modal.tsx index 221b6ffcc..6392fc557 100644 --- a/web/components/core/modals/bulk-delete-issues-modal.tsx +++ b/web/components/core/modals/bulk-delete-issues-modal.tsx @@ -157,99 +157,101 @@ export const BulkDeleteIssuesModal: React.FC = (props) => { leaveFrom="opacity-100 scale-100" leaveTo="opacity-0 scale-95" > - -
- { - const selectedIssues = watch("delete_issue_ids"); - if (selectedIssues.includes(val)) - setValue( - "delete_issue_ids", - selectedIssues.filter((i) => i !== val) - ); - else setValue("delete_issue_ids", [...selectedIssues, val]); - }} - > -
-
- - +
+ + { + const selectedIssues = watch("delete_issue_ids"); + if (selectedIssues.includes(val)) + setValue( + "delete_issue_ids", + selectedIssues.filter((i) => i !== val) + ); + else setValue("delete_issue_ids", [...selectedIssues, val]); + }} > - {filteredIssues.length > 0 ? ( -
  • - {query === "" && ( -

    - Select issues to delete -

    - )} -
      - {filteredIssues.map((issue) => ( - - `flex cursor-pointer select-none items-center justify-between rounded-md px-3 py-2 ${ - active ? "bg-custom-background-80 text-custom-text-100" : "" - }` - } - > -
      - - - - {issue.project_detail.identifier}-{issue.sequence_id} - - {issue.name} -
      -
      - ))} -
    -
  • - ) : ( -
    - -

    - No issues found. Create a new issue with{" "} -
    C
    . -

    -
    - )} - -
    +
    +
    - {filteredIssues.length > 0 && ( -
    - - -
    - )} - + + {filteredIssues.length > 0 ? ( +
  • + {query === "" && ( +

    + Select issues to delete +

    + )} +
      + {filteredIssues.map((issue) => ( + + `flex cursor-pointer select-none items-center justify-between rounded-md px-3 py-2 ${ + active ? "bg-custom-background-80 text-custom-text-100" : "" + }` + } + > +
      + + + + {issue.project_detail.identifier}-{issue.sequence_id} + + {issue.name} +
      +
      + ))} +
    +
  • + ) : ( +
    + +

    + No issues found. Create a new issue with{" "} +
    C
    . +

    +
    + )} +
    + + + {filteredIssues.length > 0 && ( +
    + + +
    + )} + +