Skip to content

Commit

Permalink
Add monaco default style options (elastic#107930) (elastic#108113)
Browse files Browse the repository at this point in the history
* Add monaco default style options

* Update snapshot

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
ryankeairns and kibanamachine authored Aug 10, 2021
1 parent 1dd518d commit d470500
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/plugins/kibana_react/public/code_editor/code_editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit d470500

Please sign in to comment.