From 1ef0a86c9d678c0e4a3b9281cc55fef509453988 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Fri, 1 Dec 2023 15:12:25 +0530 Subject: [PATCH] chore: create issue modal improvement (#2960) --- web/components/issues/select/cycle.tsx | 43 +++++++++++++++++-------- web/components/issues/select/module.tsx | 43 +++++++++++++++++-------- 2 files changed, 58 insertions(+), 28 deletions(-) diff --git a/web/components/issues/select/cycle.tsx b/web/components/issues/select/cycle.tsx index 04e251f01..ce1e89d99 100644 --- a/web/components/issues/select/cycle.tsx +++ b/web/components/issues/select/cycle.tsx @@ -104,24 +104,39 @@ export const IssueCycleSelect: React.FC = observer((props
{filteredOptions ? ( filteredOptions.length > 0 ? ( - filteredOptions.map((option) => ( + <> + {filteredOptions.map((option) => ( + + `flex items-center justify-between gap-2 cursor-pointer select-none truncate rounded px-1 py-1.5 ${ + active && !selected ? "bg-custom-background-80" : "" + } w-full truncate ${selected ? "text-custom-text-100" : "text-custom-text-200"}` + } + > + {({ selected }) => ( + <> + {option.content} + {selected && } + + )} + + ))} - `flex items-center justify-between gap-2 cursor-pointer select-none truncate rounded px-1 py-1.5 ${ - active && !selected ? "bg-custom-background-80" : "" - } w-full truncate ${selected ? "text-custom-text-100" : "text-custom-text-200"}` + key="none" + value="" + className={({ active }) => + `flex items-center justify-between gap-2 ${ + active ? "bg-custom-background-80" : "" + } cursor-pointer select-none truncate rounded px-1 py-1.5 w-full text-custom-text-100` } > - {({ selected }) => ( - <> - {option.content} - {selected && } - - )} +
+ None +
- )) + ) : (

No matching results

diff --git a/web/components/issues/select/module.tsx b/web/components/issues/select/module.tsx index 3174f32c1..98d242fbe 100644 --- a/web/components/issues/select/module.tsx +++ b/web/components/issues/select/module.tsx @@ -98,24 +98,39 @@ export const IssueModuleSelect: React.FC = observer((pro
{filteredOptions ? ( filteredOptions.length > 0 ? ( - filteredOptions.map((option) => ( + <> + {filteredOptions.map((option) => ( + + `flex items-center justify-between gap-2 cursor-pointer select-none truncate rounded px-1 py-1.5 ${ + active && !selected ? "bg-custom-background-80" : "" + } w-full truncate ${selected ? "text-custom-text-100" : "text-custom-text-200"}` + } + > + {({ selected }) => ( + <> + {option.content} + {selected && } + + )} + + ))} - `flex items-center justify-between gap-2 cursor-pointer select-none truncate rounded px-1 py-1.5 ${ - active && !selected ? "bg-custom-background-80" : "" - } w-full truncate ${selected ? "text-custom-text-100" : "text-custom-text-200"}` + key="none" + value="" + className={({ active }) => + `flex items-center justify-between gap-2 ${ + active ? "bg-custom-background-80" : "" + } cursor-pointer select-none truncate rounded px-1 py-1.5 w-full text-custom-text-100` } > - {({ selected }) => ( - <> - {option.content} - {selected && } - - )} +
+ None +
- )) + ) : (

No matching results