UI: Add ellipsis to entity list and subtype list chip and fixed api usage state display value

This commit is contained in:
Artem Dzhereleiko 2025-07-30 15:10:46 +03:00
parent f31f49b19f
commit 850bb69c4e
4 changed files with 12 additions and 0 deletions

View File

@ -128,6 +128,9 @@ export class EntityFilterViewComponent implements ControlValueAccessor {
{edgeTypes});
}
break;
case AliasFilterType.apiUsageState:
this.filterDisplayValue = this.translate.instant('alias.filter-type-apiUsageState');
break;
case AliasFilterType.entityViewType:
const entityViewTypesQuoted = [];
this.filter.entityViewTypes.forEach((entityViewType) => {

View File

@ -25,6 +25,7 @@
<mat-chip-grid #chipList formControlName="entities">
<mat-chip-row
*ngFor="let entity of entities"
class="tb-chip-row-ellipsis"
[removable]="!disabled"
(removed)="remove(entity)">
{{entity.name}}

View File

@ -22,6 +22,7 @@
<mat-chip-grid #chipList formControlName="entitySubtypeList">
<mat-chip-row
*ngFor="let entitySubtype of entitySubtypeList"
class="tb-chip-row-ellipsis"
[removable]="!disabled"
(removed)="remove(entitySubtype)">
{{customTranslate(entitySubtype)}}

View File

@ -1255,6 +1255,13 @@ pre.tb-highlight {
}
}
.tb-chip-row-ellipsis {
overflow: hidden;
.mdc-evolution-chip__cell--primary, .mdc-evolution-chip__text-label {
overflow: hidden;
}
}
@media #{$mat-lt-md} {
.mat-mdc-form-field {
.mat-mdc-form-field-infix {