Skip to content

Commit

Permalink
Fix yaml settings editor styling (#99558) (#99621)
Browse files Browse the repository at this point in the history
Co-authored-by: Jen Huang <its.jenetic@gmail.com>
  • Loading branch information
kibanamachine and jen-huang committed May 10, 2021
1 parent 8a68ed3 commit f61adbd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ import { isDiffPathProtocol } from '../../../../../common/';
import { SettingsConfirmModal } from './confirm_modal';
import type { SettingsConfirmModalProps } from './confirm_modal';

import 'brace/mode/yaml';
import 'brace/theme/textmate';

const URL_REGEX = /^(https?):\/\/[^\s$.?#].[^\s]*$/gm;

interface Props {
Expand Down Expand Up @@ -323,6 +326,7 @@ export const SettingFlyout: React.FunctionComponent<Props> = ({ onClose }) => {
maxLines: 30,
tabSize: 2,
showGutter: false,
showPrintMargin: false,
}}
{...inputs.additionalYamlConfig.props}
onChange={inputs.additionalYamlConfig.setValue}
Expand Down

0 comments on commit f61adbd

Please sign in to comment.