From dcb3e00e3af7d10e6c81e88c60efacdcb8a9761f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Mon, 29 Jun 2015 14:36:55 +0200 Subject: [PATCH] styling for mobile --- .../ascribe_uploader/file_drag_and_drop.js | 4 +-- .../file_drag_and_drop_preview_image.js | 24 +++++++++++---- .../react_s3_fine_uploader.js | 3 +- sass/ascribe_settings.scss | 9 +++--- sass/ascribe_uploader.scss | 30 ++++++++++--------- 5 files changed, 43 insertions(+), 27 deletions(-) diff --git a/js/components/ascribe_uploader/file_drag_and_drop.js b/js/components/ascribe_uploader/file_drag_and_drop.js index ee3f524b..7db49192 100644 --- a/js/components/ascribe_uploader/file_drag_and_drop.js +++ b/js/components/ascribe_uploader/file_drag_and_drop.js @@ -109,9 +109,9 @@ var FileDragAndDrop = React.createClass({ render: function () { // has files only is true if there are files that do not have the status deleted or canceled let hasFiles = this.props.filesToUpload.filter((file) => file.status !== 'deleted' && file.status !== 'canceled').length > 0; - let className = hasFiles ? 'file-drag-and-drop has-files ' : 'file-drag-and-drop '; + let className = hasFiles ? 'has-files ' : ''; className += this.props.dropzoneInactive ? 'inactive-dropzone' : 'active-dropzone'; - className += ' ' + this.props.className; + className += this.props.className ? ' ' + this.props.className : ''; return (
: