1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

Fix upload button glitch

This commit is contained in:
ksamuel 2020-08-14 10:26:04 +02:00
parent 9b2f9911f2
commit d133494e9d
2 changed files with 5 additions and 4 deletions

View File

@ -176,7 +176,7 @@ input.hide-upload {
filter: alpha(opacity=0);
opacity: 0;
z-index: 2;
width: 80px;
width: 0;
margin-top: -20px;
cursor: pointer;
cursor: hand;

View File

@ -3,9 +3,10 @@
<div>
<div class="file-upload" v-if="support.fileUpload">
<input type="button" class="btn btn-primary" :value="isUploading ? 'Uploading...': 'Upload file'"
:disabled="isUploading">
<label type="button" class="btn btn-primary"
:disabled="isUploading">{% isUploading ? 'Uploading...': 'Upload file' %}
<input type="file" class="hide-upload" id="file-upload" @change="handleUpload($event.target.files)">
</label>
</div>
</div>