Skip to content

Commit

Permalink
Merge pull request #15731 from dalenguyen/improve-file-upload-spacing
Browse files Browse the repository at this point in the history
fix(fileupload): improve spacing where image preview doesn't exist
  • Loading branch information
cetincakiroglu authored May 30, 2024
2 parents 2bb1f14 + 06b4f0e commit 1e7c326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/fileupload/fileupload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ import { FileBeforeUploadEvent, FileProgressEvent, FileRemoveEvent, FileSelectEv
<div class="p-fileupload-files" *ngIf="hasFiles()">
<div *ngIf="!fileTemplate">
<div class="p-fileupload-row" *ngFor="let file of files; let i = index">
<div><img [src]="file.objectURL" *ngIf="isImage(file)" [width]="previewWidth" (error)="imageError($event)" /></div>
<div *ngIf="isImage(file)"><img [src]="file.objectURL" [width]="previewWidth" (error)="imageError($event)" /></div>
<div class="p-fileupload-filename">{{ file.name }}</div>
<div>{{ formatSize(file.size) }}</div>
<div>
Expand Down

0 comments on commit 1e7c326

Please sign in to comment.