fix: dropzone height to fill all screen height (#10547)

master
sadegh 4 years ago committed by GitHub
parent 1f9abbee4d
commit 799758e54f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      browser/app/js/uploads/Dropzone.js
  2. 3
      browser/app/less/inc/file-explorer.less

@ -36,7 +36,7 @@ export class Dropzone extends React.Component {
// Overwrite the default styling from react-dropzone; otherwise it // Overwrite the default styling from react-dropzone; otherwise it
// won't handle child elements correctly. // won't handle child elements correctly.
const style = { const style = {
height: "100%", flex: "1",
borderWidth: "0", borderWidth: "0",
borderStyle: "dashed", borderStyle: "dashed",
borderColor: "#fff" borderColor: "#fff"

@ -20,7 +20,8 @@
@media(max-width: @screen-sm-max) { @media(max-width: @screen-sm-max) {
padding: 75px 0 80px; padding: 75px 0 80px;
} }
display: flex;
flex-direction: column;
min-height:100vh; min-height:100vh;
overflow: auto; overflow: auto;
} }

Loading…
Cancel
Save