diff --git a/.flowconfig b/.flowconfig index 1eaa4969e..664b2d8de 100644 --- a/.flowconfig +++ b/.flowconfig @@ -20,6 +20,5 @@ module.name_mapper='^lbry\(.*\)$' -> '/src/renderer/lbry\1' module.name_mapper='^rewards\(.*\)$' -> '/src/renderer/rewards\1' module.name_mapper='^modal\(.*\)$' -> '/src/renderer/modal\1' module.name_mapper='^app\(.*\)$' -> '/src/renderer/app\1' -module.name_mapper='^native\(.*\)$' -> '/src/renderer/native\1' [strict] diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ae61c477..61461cbf0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,6 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). ### Added - * Add ability to open log file and log directory in the help page ([#1556](https://github.com/lbryio/lbry-app/issues/1556)) * Add ability to resend verification email ([#1492](https://github.com/lbryio/lbry-app/issues/1492)) * Add Narrative about Feature Request on Help Page and Report Page ([#1551](https://github.com/lbryio/lbry-app/pull/1551)) * Add keyboard shortcut to quit the app on Windows ([#1202](https://github.com/lbryio/lbry-app/pull/1202)) @@ -28,7 +27,6 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). * Move rewards logic to interal api ([#1509](https://github.com/lbryio/lbry-app/pull/1509)) ### Fixed - * Fixing content address extending outside of visible area. ([#741](https://github.com/lbryio/lbry-app/issues/741)) * Fix content-type not shown correctly in file description ([#863](https://github.com/lbryio/lbry-app/pull/863)) * Fix [Flow](https://flow.org/) ([#1197](https://github.com/lbryio/lbry-app/pull/1197)) * Fix black screen on macOS after maximizing LBRY and then closing ([#1235](https://github.com/lbryio/lbry-app/pull/1235)) 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 && ( -