@@ -3,13 +3,14 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
min-height: 100px;
|
min-height: 100px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&.dz-started .placeholder {
|
&.dz-started .dropzone-hint {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input" id="filedropzone">
|
<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>
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
@@ -147,7 +148,7 @@
|
|||||||
init: function() {
|
init: function() {
|
||||||
$(".fallback").hide();
|
$(".fallback").hide();
|
||||||
this.on("drop", function(event) {
|
this.on("drop", function(event) {
|
||||||
$("#filedropzone .placeholder").hide();
|
$("#filedropzone .dropzone-hint").hide();
|
||||||
});
|
});
|
||||||
this.on("complete", function(file) {
|
this.on("complete", function(file) {
|
||||||
$("#filedropzone .dz-progress").hide();
|
$("#filedropzone .dz-progress").hide();
|
||||||
|
|||||||
Reference in New Issue
Block a user