UI: Fixed alarm type list width and empty option
This commit is contained in:
parent
e211e5759f
commit
95f37ee61b
@ -40,6 +40,9 @@
|
|||||||
tb-entity-subtype-list {
|
tb-entity-subtype-list {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
width: 180px;
|
width: 180px;
|
||||||
|
.mdc-evolution-chip-set__chips {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mat-mdc-chip {
|
.mat-mdc-chip {
|
||||||
|
|||||||
@ -298,7 +298,7 @@ export class EntitySubTypeListComponent implements ControlValueAccessor, OnInit,
|
|||||||
} else {
|
} else {
|
||||||
result = subTypes.filter(subType => searchText ? subType.toUpperCase().startsWith(searchText.toUpperCase()) : true);
|
result = subTypes.filter(subType => searchText ? subType.toUpperCase().startsWith(searchText.toUpperCase()) : true);
|
||||||
}
|
}
|
||||||
if (!result.length) {
|
if (!result.length && searchText.length) {
|
||||||
result = [searchText];
|
result = [searchText];
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user