Add scroolToLine when clicking on an error message, also add a hover background color to error messages (#199)

pull/207/head
Domingo Alvarez Duarte 2 years ago committed by GitHub
parent a558c51aa1
commit 04b737a515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      docs/index.js
  2. 3
      docs/style.css

@ -119,6 +119,7 @@ function makeOnClickInInfo(editor) {
return function () {
const el = $(this);
editor.navigateTo(el.data('ln') - 1, el.data('col') - 1);
editor.scrollToLine(el.data('ln') - 1, true, false, null);
editor.focus();
}
};

@ -66,6 +66,9 @@ body {
.editor-info li {
cursor: pointer;
}
.editor-info li:hover{
background-color: yellow;
}
.editor-sub-header {
padding: 4px 8px;
}

Loading…
Cancel
Save