Fixed #585 - FileUpload Preview columns become misaligned when both image and non-image files are uploaded
parent
04bdc70afc
commit
c108bb9b87
|
@ -14,8 +14,8 @@
|
||||||
<FileUploadMessage v-for="msg of messages" severity="error" :key="msg">{{msg}}</FileUploadMessage>
|
<FileUploadMessage v-for="msg of messages" severity="error" :key="msg">{{msg}}</FileUploadMessage>
|
||||||
<div class="p-fileupload-files" v-if="hasFiles">
|
<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 class="p-fileupload-row" v-for="(file, index) of files" :key="file.name + file.type + file.size">
|
||||||
<div v-if="isImage(file)">
|
<div>
|
||||||
<img role="presentation" :alt="file.name" :src="file.objectURL" :width="previewWidth" />
|
<img v-if="isImage(file)" role="presentation" :alt="file.name" :src="file.objectURL" :width="previewWidth" />
|
||||||
</div>
|
</div>
|
||||||
<div>{{file.name}}</div>
|
<div>{{file.name}}</div>
|
||||||
<div>{{formatSize(file.size)}}</div>
|
<div>{{formatSize(file.size)}}</div>
|
||||||
|
|
Loading…
Reference in New Issue