mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Add scroolToLine when clicking on an error message, also add a hover background color to error messages (#199)
This commit is contained in:
parent
a558c51aa1
commit
04b737a515
@ -119,6 +119,7 @@ function makeOnClickInInfo(editor) {
|
|||||||
return function () {
|
return function () {
|
||||||
const el = $(this);
|
const el = $(this);
|
||||||
editor.navigateTo(el.data('ln') - 1, el.data('col') - 1);
|
editor.navigateTo(el.data('ln') - 1, el.data('col') - 1);
|
||||||
|
editor.scrollToLine(el.data('ln') - 1, true, false, null);
|
||||||
editor.focus();
|
editor.focus();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -66,6 +66,9 @@ body {
|
|||||||
.editor-info li {
|
.editor-info li {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
.editor-info li:hover{
|
||||||
|
background-color: yellow;
|
||||||
|
}
|
||||||
.editor-sub-header {
|
.editor-sub-header {
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user