From ee42e5e1b4253200e532f32958128a93394e9098 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 13 Jun 2018 01:20:53 -0400 Subject: [PATCH] alignment fixes --- .../common/form-components/form-field.jsx | 26 +++++++++---------- src/renderer/component/fileList/view.jsx | 1 + .../component/transactionList/view.jsx | 1 + src/renderer/component/walletSend/view.jsx | 2 ++ src/renderer/component/walletSendTip/view.jsx | 7 ++++- src/renderer/page/getCredits/view.jsx | 9 +------ src/renderer/page/settings/view.jsx | 26 +++++++++---------- src/renderer/scss/_gui.scss | 4 +++ src/renderer/scss/component/_form-field.scss | 10 ++++++- 9 files changed, 48 insertions(+), 38 deletions(-) diff --git a/src/renderer/component/common/form-components/form-field.jsx b/src/renderer/component/common/form-components/form-field.jsx index 6b0a9b234..dcbaff85f 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, + fixClass?: 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, + fixClass, ...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 && ( -