13451-Fix text color autocomplete agents result

This commit is contained in:
Pablo Aragon 2024-04-10 13:02:37 +02:00
parent 021cc245ac
commit d425e25c03
2 changed files with 8 additions and 4 deletions

View File

@ -6470,25 +6470,25 @@ function ui_print_agent_autocomplete_input($parameters)
switch (item.filter) {
default:
case \'agent\':
return $("<li style=\'background: #DFFFC4;\'></li>")
return $("<li style=\'background: #DFFFC4;\' class=\'agent-autocomplete-li-text-color\' title=\''.__('Agent').'\'></li>")
.data("item.autocomplete", item)
.append(text)
.appendTo(ul);
break;
case \'address\':
return $("<li style=\'background: #F7CFFF;\'></li>")
return $("<li style=\'background: #F7CFFF;\' class=\'agent-autocomplete-li-text-color\' title=\''.__('Address').'\'></li>")
.data("item.autocomplete", item)
.append(text)
.appendTo(ul);
break;
case \'description\':
return $("<li style=\'background: #FEFCC6;\'></li>")
return $("<li style=\'background: #FEFCC6;\' class=\'agent-autocomplete-li-text-color\' title=\''.__('Description').'\'></li>")
.data("item.autocomplete", item)
.append(text)
.appendTo(ul);
break;
case \'alias\':
return $("<li style=\"'.$background_results.'\"></li>")
return $("<li style=\"'.$background_results.'\" title=\''.__('Alias').'\'></li>")
.data("item.autocomplete", item)
.append(text)
.appendTo(ul);

View File

@ -1970,3 +1970,7 @@ input.button_task:not(div.login_pass > input):not(div.login_nick
.empty-view > .empty-view-img-text > img {
filter: brightness(0.85);
}
li.agent-autocomplete-li-text-color a {
color: #333 !important;
}