mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-25 11:14:05 +00:00
Enable image previews again
This commit is contained in:
parent
9b4e0425c3
commit
9cf2f07cdd
1 changed files with 4 additions and 0 deletions
|
|
@ -47,6 +47,10 @@ export default class ProgressDrawer extends Plugin {
|
|||
${file.type.specific ? file.type.specific.toUpperCase() : '?'}
|
||||
</text>
|
||||
</svg>
|
||||
${file.type.general === 'image'
|
||||
? yo`<img class="UppyProgressDrawer-itemIcon" alt="${file.name}" src="${file.preview}">`
|
||||
: yo`<span class="UppyProgressDrawer-itemType">${file.type.specific}</span>`
|
||||
}
|
||||
</div>
|
||||
<div class="UppyProgressDrawer-itemInner">
|
||||
<h4 class="UppyProgressDrawer-itemName">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue