From 0a318a674656c2ee6515d5bf42b37ef137c4aa4e Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 1 Mar 2022 17:05:33 +0100 Subject: [PATCH] fix source highlight --- apps/remix-ide/src/app.js | 1 + libs/remix-ui/editor/src/lib/remix-ui-editor.css | 5 +++++ libs/remix-ui/editor/src/lib/remix-ui-editor.tsx | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app.js b/apps/remix-ide/src/app.js index 732ef24c4a..62ad9892df 100644 --- a/apps/remix-ide/src/app.js +++ b/apps/remix-ide/src/app.js @@ -338,6 +338,7 @@ class AppComponent { await this.appManager.activatePlugin(['hiddenPanel', 'pluginManager', 'contextualListener', 'terminal', 'blockchain', 'fetchAndCompile', 'contentImport', 'gistHandler']) await this.appManager.activatePlugin(['settings']) await this.appManager.activatePlugin(['walkthrough','storage', 'search']) + await this.appManager.activatePlugin(['scriptRunner']) this.appManager.on( 'filePanel', diff --git a/libs/remix-ui/editor/src/lib/remix-ui-editor.css b/libs/remix-ui/editor/src/lib/remix-ui-editor.css index ad1c9a7d5b..d3a7dde20d 100644 --- a/libs/remix-ui/editor/src/lib/remix-ui-editor.css +++ b/libs/remix-ui/editor/src/lib/remix-ui-editor.css @@ -18,4 +18,9 @@ .contextview { opacity: 1; position: absolute; +} + +.inline-class { + background: var(--primary) !important; + color: var(--text) !important; } \ No newline at end of file diff --git a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx index d3535feec6..769abf9528 100644 --- a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx +++ b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx @@ -263,7 +263,7 @@ export const EditorUI = (props: EditorUIProps) => { range: new monacoRef.current.Range(decoration.position.start.line + 1, decoration.position.start.column + 1, decoration.position.end.line + 1, decoration.position.end.column + 1), options: { isWholeLine, - linesDecorationsClassName: `alert-info border-0 selectionHighlight highlightLine${decoration.position.start.line + 1}` + inlineClassName: `inline-class border-0 selectionHighlight highlightLine${decoration.position.start.line + 1}` } } }