Jelajahi Sumber

Merge pull request #641 from sharelatex/as-fix-autocomplete-blur

Fix blurry autocomplete highlight on Chrome
Alasdair Smith 8 tahun lalu
induk
melakukan
89ecb9f01b
1 mengubah file dengan 2 tambahan dan 3 penghapusan
  1. 2 3
      services/web/public/coffee/ide.coffee

+ 2 - 3
services/web/public/coffee/ide.coffee

@@ -213,11 +213,10 @@ define [
 		try
 		try
 			chromeVersion = parseFloat(navigator.userAgent.split(" Chrome/")[1]) || null;
 			chromeVersion = parseFloat(navigator.userAgent.split(" Chrome/")[1]) || null;
 			browserIsChrome61or62 = (
 			browserIsChrome61or62 = (
-				chromeVersion? &&
-				(chromeVersion == 61 || chromeVersion == 62)
+				chromeVersion?
 			)
 			)
 			if browserIsChrome61or62
 			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
 		catch err
 			console.error err
 			console.error err