Browse Source

Fixed IE11 issues with uploader

pull/170/head
Michael Olund 5 years ago
parent
commit
ddc1e42cf3
3 changed files with 15 additions and 3 deletions
  1. +1
    -2
      vue/src/components/Uploader/Image.vue
  2. +1
    -1
      vue/src/components/Uploader/ModalPreview.vue
  3. +13
    -0
      vue/src/components/Uploader/Uploader.vue

+ 1
- 2
vue/src/components/Uploader/Image.vue View File

@ -101,8 +101,7 @@ export default {
&::after {
font-family: FontAwesome;
content: "\f06e";
position: absolute;
left: 58px;
margin: auto;
font-size: 43px;
color: transparent;
}


+ 1
- 1
vue/src/components/Uploader/ModalPreview.vue View File

@ -1,6 +1,6 @@
<template>
<modal v-model="showModal" class="image-preview-modal" ref="modal" :footer="false" @hide="$emit('close')">
<img v-if="file.objectURL && !file.error && file.type !== 'application/pdf'" :src="file.objectURL" :style="modalImageStyle" :data-rotate="rotateVal">
<img v-if="file.objectURL && !file.error && file.type !== 'application/pdf'" :src="file.objectURL" :style="modalImageStyle">
</modal>
</template>


+ 13
- 0
vue/src/components/Uploader/Uploader.vue View File

@ -392,3 +392,16 @@ export default {
}
}
</style>
<style type="css">
/* override vue-upload-component styles for IE11 issues */
.file-uploads-html5 input[type=file] {
height: 0 !important;
padding: 0 !important;
border: none !important;
}
.file-uploads-html5 label {
display: inline;
}
</style>

Loading…
Cancel
Save