Browse Source

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

pull/13797/head
Artem Dzhereleiko 1 year ago
parent
commit
850bb69c4e
  1. 3
      ui-ngx/src/app/modules/home/components/entity/entity-filter-view.component.ts
  2. 1
      ui-ngx/src/app/shared/components/entity/entity-list.component.html
  3. 1
      ui-ngx/src/app/shared/components/entity/entity-subtype-list.component.html
  4. 7
      ui-ngx/src/styles.scss

3
ui-ngx/src/app/modules/home/components/entity/entity-filter-view.component.ts

@ -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) => {

1
ui-ngx/src/app/shared/components/entity/entity-list.component.html

@ -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}}

1
ui-ngx/src/app/shared/components/entity/entity-subtype-list.component.html

@ -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)}}

7
ui-ngx/src/styles.scss

@ -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 {

Loading…
Cancel
Save