[WEB-1157] chore: label select improvement (#4370)

This commit is contained in:
Anmol Singh Bhatia 2024-05-06 15:30:58 +05:30 committed by GitHub
parent 59f1cc1962
commit cdab12e4b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ export const IssueLabelSelect: React.FC<Props> = observer((props) => {
{label ? ( {label ? (
label label
) : value && value.length > 0 ? ( ) : value && value.length > 0 ? (
<span className="flex items-center justify-center gap-2 text-xs"> <span className="flex items-center justify-center gap-2 text-xs h-full">
<IssueLabelsList <IssueLabelsList
labels={value.map((v) => projectLabels?.find((l) => l.id === v)) ?? []} labels={value.map((v) => projectLabels?.find((l) => l.id === v)) ?? []}
length={3} length={3}

View File

@ -25,7 +25,7 @@ export const IssueLabelsList: FC<IssueLabelsListProps> = (props) => {
tooltipContent={labels.map((l) => l?.name).join(", ")} tooltipContent={labels.map((l) => l?.name).join(", ")}
isMobile={isMobile} isMobile={isMobile}
> >
<div className="flex items-center gap-1 rounded border-[0.5px] border-custom-border-300 px-2 py-1 text-xs text-custom-text-200"> <div className="h-full flex items-center gap-1 rounded border-[0.5px] border-custom-border-300 px-2 py-1 text-xs text-custom-text-200">
<span className="h-2 w-2 flex-shrink-0 rounded-full bg-custom-primary" /> <span className="h-2 w-2 flex-shrink-0 rounded-full bg-custom-primary" />
{`${labels.length} Labels`} {`${labels.length} Labels`}
</div> </div>