From 6df4032c9060bc91aa26abc310f0fb4f3dd5c72d Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 18 Jul 2018 11:46:21 -0400 Subject: [PATCH] improve thumbnail preview styling --- .../component/common/file-selector.jsx | 4 +- src/renderer/component/publishForm/view.jsx | 28 ++++--- .../component/selectThumbnail/view.jsx | 80 ++++++++++--------- src/renderer/scss/component/_form-field.scss | 4 +- 4 files changed, 63 insertions(+), 53 deletions(-) diff --git a/src/renderer/component/common/file-selector.jsx b/src/renderer/component/common/file-selector.jsx index ec19394e1..3729202d0 100644 --- a/src/renderer/component/common/file-selector.jsx +++ b/src/renderer/component/common/file-selector.jsx @@ -9,7 +9,7 @@ type Props = { type: string, currentPath: ?string, onFileChosen: (string, string) => void, - fileLabel: ?string, + fileLabel?: string, directoryLabel?: string, }; @@ -56,7 +56,7 @@ class FileSelector extends React.PureComponent { type === 'file' ? fileLabel || __('Choose File') : directoryLabel || __('Choose Directory'); return ( - +