Skip to content

Commit

Permalink
[ES|QL] Fix editor cursor jumpiness
Browse files Browse the repository at this point in the history
  • Loading branch information
davismcphee committed Dec 1, 2024
1 parent 0854996 commit 5cc3166
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/kbn-esql-editor/src/esql_editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ export const ESQLEditor = memo(function ESQLEditor({
lightbulb: {
enabled: false,
},
lineDecorationsWidth: 12,
lineDecorationsWidth: 20,
lineNumbers: 'on',
lineNumbersMinChars: 3,
minimap: { enabled: false },
Expand Down
14 changes: 5 additions & 9 deletions packages/kbn-esql-editor/src/overwrite.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,11 @@
@include euiTextBreakWord;
}

// All scrollable containers (e.g. main container and suggest menu)
.ESQLEditor .monaco-editor .monaco-scrollable-element {
margin-left: $euiSizeS;
// Space between the autocomplete menu and expanded suggestion details
.ESQLEditor .monaco-editor .suggest-details {
padding-left: $euiSizeS;
}

.ESQLEditor .monaco-editor .monaco-list .monaco-scrollable-element {
margin-left: 0;

.monaco-list-row.focused {
border-radius: $euiBorderRadius;
}
.ESQLEditor .monaco-editor .monaco-list .monaco-scrollable-element .monaco-list-row.focused {
border-radius: $euiBorderRadius;
}

0 comments on commit 5cc3166

Please sign in to comment.