Fixed #1210 - FileUpload - long filename

pull/1196/head^2
Cagatay Civici 2021-05-12 15:03:02 +03:00
parent 378f2d6867
commit 7634c02295
1 changed files with 5 additions and 1 deletions

View File

@ -17,7 +17,7 @@
<div> <div>
<img v-if="isImage(file)" 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 class="p-fileupload-filename">{{file.name}}</div>
<div>{{formatSize(file.size)}}</div> <div>{{formatSize(file.size)}}</div>
<div> <div>
<FileUploadButton type="button" icon="pi pi-times" @click="remove(index)" /> <FileUploadButton type="button" icon="pi pi-times" @click="remove(index)" />
@ -464,6 +464,10 @@ export default {
display: none; display: none;
} }
.p-fileupload-filename {
word-break: break-all;
}
.p-fluid .p-fileupload .p-button { .p-fluid .p-fileupload .p-button {
width: auto; width: auto;
} }