From 799758e54f093a2330860276423261b3fb9ef1d9 Mon Sep 17 00:00:00 2001 From: sadegh Date: Wed, 30 Sep 2020 08:57:41 +0330 Subject: [PATCH] fix: dropzone height to fill all screen height (#10547) --- browser/app/js/uploads/Dropzone.js | 2 +- browser/app/less/inc/file-explorer.less | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/browser/app/js/uploads/Dropzone.js b/browser/app/js/uploads/Dropzone.js index 8e5afdb87..18ed05891 100644 --- a/browser/app/js/uploads/Dropzone.js +++ b/browser/app/js/uploads/Dropzone.js @@ -36,7 +36,7 @@ export class Dropzone extends React.Component { // Overwrite the default styling from react-dropzone; otherwise it // won't handle child elements correctly. const style = { - height: "100%", + flex: "1", borderWidth: "0", borderStyle: "dashed", borderColor: "#fff" diff --git a/browser/app/less/inc/file-explorer.less b/browser/app/less/inc/file-explorer.less index 7d5e942dd..c8fbd04b2 100644 --- a/browser/app/less/inc/file-explorer.less +++ b/browser/app/less/inc/file-explorer.less @@ -20,7 +20,8 @@ @media(max-width: @screen-sm-max) { padding: 75px 0 80px; } - + display: flex; + flex-direction: column; min-height:100vh; overflow: auto; }