Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/nervous-comics-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphiql/react': patch
'graphiql': patch
---

Enable font ligatures in monaco-editors fix incorrect caret position on Windows
5 changes: 4 additions & 1 deletion packages/graphiql-react/src/utility/create-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,11 @@ export function createEditor(
},
scrollBeyondLastLine: false, // cleans up unnecessary "padding-bottom" on each editor
fontFamily: '"Fira Code"',
// Enable font ligatures and fix incorrect caret position on Windows
// See: https://github.com/graphql/graphiql/issues/4040
fontLigatures: true,
lineNumbersMinChars: 2, // reduce line numbers width on the left size
tabIndex: -1, // Do not allow tabbing into the editor, only via by pressing Enter ot its container
tabIndex: -1, // Do not allow tabbing into the editor, only via by pressing Enter or its container
...options,
});
}
Loading