mirror of
https://github.com/teableio/teable
synced 2024-11-23 07:51:00 +00:00
fix: user tag style (#843)
* fix: user tag display * fix: convert multiplevalue should delelte the filter item
This commit is contained in:
parent
f27e398a97
commit
f82bebdfc1
@ -1262,13 +1262,14 @@ export class FieldConvertingService {
|
||||
return;
|
||||
}
|
||||
await this.convertSelectChoiceOps(views, tableId, fieldId, updateNameOptions, deleteOptions);
|
||||
return;
|
||||
}
|
||||
|
||||
// judge the operator is same groups or cellValueType is same, otherwise delete the filter
|
||||
// judge the operator is same groups or cellValueType is same, otherwise delete the filter item
|
||||
if (
|
||||
newField.type !== oldField.type &&
|
||||
!isEqual(oldOperators, newOperators) &&
|
||||
oldField.cellValueType !== newField.cellValueType
|
||||
(newField.type !== oldField.type && !isEqual(oldOperators, newOperators)) ||
|
||||
oldField.cellValueType !== newField.cellValueType ||
|
||||
oldField?.isMultipleCellValue !== newField?.isMultipleCellValue
|
||||
) {
|
||||
for (let i = 0; i < views.length; i++) {
|
||||
const viewId = views[i].id;
|
||||
|
@ -13,9 +13,9 @@ export const UserTag = (props: IUserTag) => {
|
||||
const { name, avatar, suffix, className } = props;
|
||||
|
||||
return (
|
||||
<div className={cn('flex items-center text-sm flex-1 truncate', className)}>
|
||||
<div className={cn('flex items-center text-sm', className)}>
|
||||
<UserAvatar name={name} avatar={avatar} />
|
||||
<div className="-ml-3 flex flex-1 items-center overflow-hidden rounded-[6px] bg-secondary pl-4 pr-2 text-secondary-foreground">
|
||||
<div className="-ml-3 flex items-center overflow-hidden rounded-[6px] bg-secondary pl-4 pr-2 text-secondary-foreground">
|
||||
<p className="flex-1 truncate" title={name}>
|
||||
{name}
|
||||
</p>
|
||||
|
@ -82,6 +82,7 @@ const FilterUserSelectBase = (props: IFilterUserBaseProps) => {
|
||||
)
|
||||
}
|
||||
name={option.label}
|
||||
className="flex-1 truncate"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user