Skip to content

Commit

Permalink
Fixed #701 - FileUpload Preview columns become misaligned when both i…
Browse files Browse the repository at this point in the history
…mage and non-image files are uploaded
  • Loading branch information
cagataycivici committed Nov 27, 2020
1 parent 14628fd commit d49fa34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/fileupload/FileUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<FileUploadMessage v-for="msg of messages" severity="error" :key="msg">{{msg}}</FileUploadMessage>
<div class="p-fileupload-files" v-if="hasFiles">
<div class="p-fileupload-row" v-for="(file, index) of files" :key="file.name + file.type + file.size">
<div v-if="isImage(file)">
<img role="presentation" :alt="file.name" :src="file.objectURL" :width="previewWidth" />
<div>
<img v-if="isImage(file)" role="presentation" :alt="file.name" :src="file.objectURL" :width="previewWidth" />
</div>
<div>{{file.name}}</div>
<div>{{formatSize(file.size)}}</div>
Expand Down

0 comments on commit d49fa34

Please sign in to comment.