Add monaco default style options (#107930)

* Add monaco default style options

* Update snapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Ryan Keairns 2021-08-10 16:02:58 -05:00 committed by GitHub
parent 565e07104c
commit ca2a591526
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View file

@ -11,6 +11,9 @@ exports[`is rendered 1`] = `
onChange={[Function]}
options={
Object {
"fontFamily": "Roboto Mono",
"fontSize": 12,
"lineHeight": 21,
"matchBrackets": "never",
"minimap": Object {
"enabled": false,

View file

@ -193,6 +193,9 @@ export class CodeEditor extends React.Component<Props, {}> {
wordWrap: 'on',
wrappingIndent: 'indent',
matchBrackets: 'never',
fontFamily: 'Roboto Mono',
fontSize: 12,
lineHeight: 21,
...options,
}}
/>

View file

@ -318,7 +318,7 @@ export class ExpressionInput extends React.Component<Props> {
provideHover: this.providerHover,
}}
options={{
fontSize: isCompact ? 12 : 16,
fontSize: isCompact ? 12 : 14,
scrollBeyondLastLine: false,
quickSuggestions: true,
minimap: {