|
|
|
@ -281,7 +281,7 @@ const filterOption = (input: string, option: any) => {
|
|
|
|
|
}" |
|
|
|
|
> |
|
|
|
|
<template v-for="selectedOpt of vModel" :key="selectedOpt.value"> |
|
|
|
|
<a-tag class="rounded-tag max-w-full" color="'#ccc'"> |
|
|
|
|
<a-tag class="rounded-tag max-w-full !pl-0" color="'#ccc'"> |
|
|
|
|
<span |
|
|
|
|
:style="{ |
|
|
|
|
'color': tinycolor.isReadable('#ccc' || '#ccc', '#fff', { level: 'AA', size: 'large' }) |
|
|
|
@ -289,8 +289,17 @@ const filterOption = (input: string, option: any) => {
|
|
|
|
|
: tinycolor.mostReadable('#ccc' || '#ccc', ['#0b1d05', '#fff']).toHex8String(), |
|
|
|
|
'font-size': '13px', |
|
|
|
|
}" |
|
|
|
|
class="flex items-stretch gap-2" |
|
|
|
|
:class="{ 'text-sm': isKanban }" |
|
|
|
|
> |
|
|
|
|
<div class="flex-none"> |
|
|
|
|
<GeneralUserIcon |
|
|
|
|
size="auto" |
|
|
|
|
:name="!selectedOpt.label?.includes('@') ? selectedOpt.label.trim() : ''" |
|
|
|
|
:email="selectedOpt.label" |
|
|
|
|
class="!text-[0.65rem]" |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
<NcTooltip class="truncate max-w-full" show-on-truncate-only> |
|
|
|
|
<template #title> |
|
|
|
|
{{ selectedOpt.label }} |
|
|
|
@ -349,13 +358,20 @@ const filterOption = (input: string, option: any) => {
|
|
|
|
|
: tinycolor.mostReadable('#ccc' || '#ccc', ['#0b1d05', '#fff']).toHex8String(), |
|
|
|
|
'font-size': '13px', |
|
|
|
|
}" |
|
|
|
|
class="flex items-center gap-2" |
|
|
|
|
class="flex items-stretch gap-2" |
|
|
|
|
:class="{ 'text-sm': isKanban }" |
|
|
|
|
> |
|
|
|
|
<GeneralUserIcon size="medium" :email="op.email" /> |
|
|
|
|
<div> |
|
|
|
|
<GeneralUserIcon |
|
|
|
|
size="auto" |
|
|
|
|
:name="op.display_name?.trim() ? op.display_name?.trim() : ''" |
|
|
|
|
:email="op.email" |
|
|
|
|
class="!text-[0.65rem]" |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
<NcTooltip class="truncate max-w-full" show-on-truncate-only> |
|
|
|
|
<template #title> |
|
|
|
|
{{ op.display_name?.length ? op.display_name : op.email }} |
|
|
|
|
{{ op.display_name?.trim() || op.email }} |
|
|
|
|
</template> |
|
|
|
|
<span |
|
|
|
|
class="text-ellipsis overflow-hidden" |
|
|
|
@ -365,7 +381,7 @@ const filterOption = (input: string, option: any) => {
|
|
|
|
|
display: 'inline', |
|
|
|
|
}" |
|
|
|
|
> |
|
|
|
|
{{ op.display_name?.length ? op.display_name : op.email }} |
|
|
|
|
{{ op.display_name?.trim() || op.email }} |
|
|
|
|
</span> |
|
|
|
|
</NcTooltip> |
|
|
|
|
</span> |
|
|
|
@ -376,7 +392,7 @@ const filterOption = (input: string, option: any) => {
|
|
|
|
|
<template #tagRender="{ label, value: val, onClose }"> |
|
|
|
|
<a-tag |
|
|
|
|
v-if="options.find((el) => el.id === val)" |
|
|
|
|
class="rounded-tag nc-selected-option" |
|
|
|
|
class="rounded-tag nc-selected-option !pl-0" |
|
|
|
|
:style="{ display: 'flex', alignItems: 'center' }" |
|
|
|
|
color="'#ccc'" |
|
|
|
|
:closable="editAllowed && ((vModel?.length ?? 0) > 1 || !column?.rqd)" |
|
|
|
@ -394,8 +410,17 @@ const filterOption = (input: string, option: any) => {
|
|
|
|
|
: tinycolor.mostReadable('#ccc' || '#ccc', ['#0b1d05', '#fff']).toHex8String(), |
|
|
|
|
'font-size': '13px', |
|
|
|
|
}" |
|
|
|
|
class="flex items-stretch gap-2" |
|
|
|
|
:class="{ 'text-sm': isKanban }" |
|
|
|
|
> |
|
|
|
|
<div> |
|
|
|
|
<GeneralUserIcon |
|
|
|
|
size="auto" |
|
|
|
|
:name="!label?.includes('@') ? label.trim() : ''" |
|
|
|
|
:email="label" |
|
|
|
|
class="!text-[0.65rem]" |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
{{ label }} |
|
|
|
|
</span> |
|
|
|
|
</a-tag> |
|
|
|
|