@@ -3,13 +3,14 @@
|
||||
padding: 0;
|
||||
min-height: 100px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
|
||||
&.dz-started .placeholder {
|
||||
&.dz-started .dropzone-hint {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,8 @@
|
||||
</div>
|
||||
|
||||
<div class="input" id="filedropzone">
|
||||
<div class="placeholder">Click or drag and drop to upload a file</div>
|
||||
<div class="dropzone-hint">Click or drag and drop to upload a file</div>
|
||||
<div class="dropzone-hint hint">Max size: <%= number_to_human_size(Danbooru.config.max_file_size) %>. Supported filetypes: jpg, png, gif, swf, mp4, webm.</div>
|
||||
</div>
|
||||
|
||||
<div class="input">
|
||||
@@ -147,7 +148,7 @@
|
||||
init: function() {
|
||||
$(".fallback").hide();
|
||||
this.on("drop", function(event) {
|
||||
$("#filedropzone .placeholder").hide();
|
||||
$("#filedropzone .dropzone-hint").hide();
|
||||
});
|
||||
this.on("complete", function(file) {
|
||||
$("#filedropzone .dz-progress").hide();
|
||||
|
||||
Reference in New Issue
Block a user