From 61bca0642e9fec3230dfb4e22a688434bfa880d9 Mon Sep 17 00:00:00 2001 From: Ramesh Kumar Chandra Date: Tue, 7 Nov 2023 15:56:52 +0530 Subject: [PATCH 1/3] chore: kanban card lable drop down items overflow --- .../issue-layouts/properties/labels.tsx | 41 +++++++++++-------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/web/components/issues/issue-layouts/properties/labels.tsx b/web/components/issues/issue-layouts/properties/labels.tsx index 596237ef468..1f285294d1a 100644 --- a/web/components/issues/issue-layouts/properties/labels.tsx +++ b/web/components/issues/issue-layouts/properties/labels.tsx @@ -65,14 +65,14 @@ export const IssuePropertyLabels: React.FC = observer((pro value: label.id, query: label.name, content: ( -
+
- {label.name} +
{label.name}
), })); @@ -93,7 +93,7 @@ export const IssuePropertyLabels: React.FC = observer((pro }); const label = ( -
+
{value.length > 0 ? ( value.length <= maxRender ? ( <> @@ -102,16 +102,18 @@ export const IssuePropertyLabels: React.FC = observer((pro .map((label) => (
-
+
- {label.name} +
+ {label.name} +
))} @@ -135,9 +137,8 @@ export const IssuePropertyLabels: React.FC = observer((pro ) ) : (
Select labels
@@ -148,7 +149,7 @@ export const IssuePropertyLabels: React.FC = observer((pro return ( = observer((pro @@ -198,15 +199,19 @@ export const IssuePropertyLabels: React.FC = observer((pro key={option.value} value={option.value} className={({ active, selected }) => - `flex items-center justify-between gap-2 cursor-pointer select-none truncate rounded px-1 py-1.5 ${ - active ? "bg-custom-background-80" : "" + `flex items-center justify-between gap-2 cursor-pointer select-none truncate rounded px-1 py-1.5 ${active ? "bg-custom-background-80" : "" } ${selected ? "text-custom-text-100" : "text-custom-text-200"}` } > {({ selected }) => ( <> {option.content} - {selected && } + {selected && +
+ + +
+ } )} From 7803ea675eddd7498698e26a56f6ad6726a26455 Mon Sep 17 00:00:00 2001 From: Ramesh Kumar Chandra Date: Wed, 8 Nov 2023 12:54:05 +0530 Subject: [PATCH 2/3] style: kaban card label text overflow, tool tip, hover cursor --- .../issue-layouts/properties/labels.tsx | 37 +++++++++++-------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/web/components/issues/issue-layouts/properties/labels.tsx b/web/components/issues/issue-layouts/properties/labels.tsx index a8bd5617b4c..4ee3127ef7d 100644 --- a/web/components/issues/issue-layouts/properties/labels.tsx +++ b/web/components/issues/issue-layouts/properties/labels.tsx @@ -93,33 +93,39 @@ export const IssuePropertyLabels: React.FC = observer((pro }); const label = ( -
+
{value.length > 0 ? ( value.length <= maxRender ? ( <> {(projectLabels ? projectLabels : []) ?.filter((l) => value.includes(l.id)) .map((label) => ( -
-
- -
- {label.name} +
+
+ +
+ {label.name} +
-
+ ))} ) : ( -
+
= observer((pro onClick={() => !projectLabels && fetchProjectLabels()} > {label} - {!hideDropdownArrow && !disabled &&