diff --git a/src/renderer/component/app/view.jsx b/src/renderer/component/app/view.jsx index a6a225df0..23ee922bb 100644 --- a/src/renderer/component/app/view.jsx +++ b/src/renderer/component/app/view.jsx @@ -84,8 +84,8 @@ class App extends React.PureComponent {
-
+
diff --git a/src/renderer/component/common/form-components/form-field.jsx b/src/renderer/component/common/form-components/form-field.jsx index 6b0a9b234..4029cbd1e 100644 --- a/src/renderer/component/common/form-components/form-field.jsx +++ b/src/renderer/component/common/form-components/form-field.jsx @@ -4,7 +4,7 @@ import ReactDOMServer from 'react-dom/server'; import classnames from 'classnames'; import MarkdownPreview from 'component/common/markdown-preview'; import SimpleMDE from 'react-simplemde-editor'; -import "simplemde/dist/simplemde.min.css"; +import 'simplemde/dist/simplemde.min.css'; type Props = { name: string, @@ -20,6 +20,7 @@ type Props = { placeholder?: string | number, children?: React.Node, stretch?: boolean, + affixClass?: string, // class applied to prefix/postfix label }; export class FormField extends React.PureComponent { @@ -35,6 +36,7 @@ export class FormField extends React.PureComponent { type, children, stretch, + affixClass, ...inputProps } = this.props; @@ -55,12 +57,12 @@ export class FormField extends React.PureComponent { {...inputProps} type="textarea" options={{ - hideIcons: ['heading', 'image', 'fullscreen', 'side-by-side'], - previewRender(plainText) { - const preview = ; - return ReactDOMServer.renderToString(preview); - } - }} + hideIcons: ['heading', 'image', 'fullscreen', 'side-by-side'], + previewRender(plainText) { + const preview = ; + return ReactDOMServer.renderToString(preview); + }, + }} /> ); @@ -92,22 +94,18 @@ export class FormField extends React.PureComponent { })} > {prefix && ( -