forked from github/plane
[WEB-1157] chore: label select improvement (#4370)
This commit is contained in:
parent
59f1cc1962
commit
cdab12e4b6
@ -106,7 +106,7 @@ export const IssueLabelSelect: React.FC<Props> = observer((props) => {
|
||||
{label ? (
|
||||
label
|
||||
) : 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
|
||||
labels={value.map((v) => projectLabels?.find((l) => l.id === v)) ?? []}
|
||||
length={3}
|
||||
|
@ -25,7 +25,7 @@ export const IssueLabelsList: FC<IssueLabelsListProps> = (props) => {
|
||||
tooltipContent={labels.map((l) => l?.name).join(", ")}
|
||||
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" />
|
||||
{`${labels.length} Labels`}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user