Improved Language Editor search bar styling and made it case insensitive

This commit is contained in:
George Kalampokis 2020-02-28 17:16:11 +02:00
parent e2982b6c3d
commit a70bb595ca
2 changed files with 4 additions and 1 deletions

View File

@ -39,4 +39,7 @@
border: 0px solid rgb(218, 218, 218);
border-radius: 6px;
}
.search-text::placeholder {
color: rgb(197, 194, 194);
}
}

View File

@ -125,7 +125,7 @@ findKeys(ev: any) {
if (ev.value === "") {
tempKeys = this.allkeys;
} else {
tempKeys = this.allkeys.filter((key) => (this.formGroup.get(key).value as string).includes(ev.value));
tempKeys = this.allkeys.filter((key) => (this.formGroup.get(key).value as string).toLowerCase().includes(ev.value.toLowerCase()));
window.scrollTo({top: 0});
}
this.keys.length = 0;