1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-25 07:23:03 +00:00

Improved search highlighting

This commit is contained in:
M66B 2023-02-05 08:27:33 +01:00
parent f5cdad5ec3
commit c45e2f8709

View file

@ -2964,8 +2964,9 @@ public class HtmlHelper {
Element span = document.createElement("span"); Element span = document.createElement("span");
span.attr("style", mergeStyles( span.attr("style", mergeStyles(
span.attr("style"), span.attr("style"),
"font-size:larger; background-color:" + encodeWebColor(color) "font-size:larger !important;" +
)); "font-weight:bold !important;" +
"background-color:" + encodeWebColor(color) + " !important"));
span.text(tnode.getWholeText().length() == text.length() span.text(tnode.getWholeText().length() == text.length()
? tnode.getWholeText().substring(start, end) ? tnode.getWholeText().substring(start, end)
: text.substring(start, end)); : text.substring(start, end));