mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Fix blurrly autocomplete highlight on Chrome
The blurrly text shadow is back on Chrome. I suspect it maybe intended, not a bug, so I've fixed it for all versions of Chrome. I've replaced with font-weight: bold, which visually has the same appearance
This commit is contained in:
parent
5681a76f4c
commit
0900559579
1 changed files with 2 additions and 3 deletions
|
@ -213,11 +213,10 @@ define [
|
|||
try
|
||||
chromeVersion = parseFloat(navigator.userAgent.split(" Chrome/")[1]) || null;
|
||||
browserIsChrome61or62 = (
|
||||
chromeVersion? &&
|
||||
(chromeVersion == 61 || chromeVersion == 62)
|
||||
chromeVersion?
|
||||
)
|
||||
if browserIsChrome61or62
|
||||
document.styleSheets[0].insertRule(".ace_editor.ace_autocomplete .ace_completion-highlight { text-shadow: none !important; }", 1)
|
||||
document.styleSheets[0].insertRule(".ace_editor.ace_autocomplete .ace_completion-highlight { text-shadow: none !important; font-weight: bold; }", 1)
|
||||
catch err
|
||||
console.error err
|
||||
|
||||
|
|
Loading…
Reference in a new issue