mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-14 07:54:41 +08:00
Styling of word filter
Trimmed include and exclude fields
This commit is contained in:
parent
1ce93391f7
commit
766938e04e
2 changed files with 10 additions and 0 deletions
|
@ -54,9 +54,11 @@ $("#wordFilterPopupWrapper .button").mousedown((e) => {
|
|||
|
||||
async function filter(language){
|
||||
let filterin = $("#wordFilter").val();
|
||||
filterin = filterin.trim();
|
||||
filterin = filterin.replace(/ /gi, "|");
|
||||
let regincl = new RegExp(filterin, "i");
|
||||
let filterout = $("#wordExclude").val();
|
||||
filterout = filterout.trim();
|
||||
filterout = filterout.replace(/ /gi, "|");
|
||||
let regexcl = new RegExp(filterout, "i");
|
||||
let filteredWords = [];
|
||||
|
|
|
@ -187,6 +187,14 @@ html {
|
|||
height: 35px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow b {
|
||||
border-color: var(--main-color) transparent transparent transparent;
|
||||
}
|
||||
|
||||
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
||||
border-color: var(--main-color) transparent;
|
||||
}
|
||||
|
||||
/* width */
|
||||
::-webkit-scrollbar {
|
||||
width: 7px;
|
||||
|
|
Loading…
Reference in a new issue