Skip to content

Commit 2642daf

Browse files
committed
Fix bug
1 parent 0102ff6 commit 2642daf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/repo-issue-edit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ async function onEditContent(event) {
8787
dz.emit('addedfile', attachment);
8888
if (isImageFile(attachment.name)) {
8989
dz.emit('thumbnail', attachment, imgSrc);
90+
dropzone.querySelector(`img[src='${imgSrc}']`).style.maxWidth = '100%';
9091
}
9192
dz.emit('complete', attachment);
9293
fileUuidDict[attachment.uuid] = {submitted: true};
93-
dropzone.querySelector(`img[src='${imgSrc}']`).style.maxWidth = '100%';
9494
const input = document.createElement('input');
9595
input.id = attachment.uuid;
9696
input.name = 'files';

0 commit comments

Comments
 (0)