mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
Improved search highlighting
This commit is contained in:
@@ -2964,8 +2964,9 @@ public class HtmlHelper {
|
||||
Element span = document.createElement("span");
|
||||
span.attr("style", mergeStyles(
|
||||
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()
|
||||
? tnode.getWholeText().substring(start, end)
|
||||
: text.substring(start, end));
|
||||
|
||||
Reference in New Issue
Block a user