Skip to content

Commit

Permalink
Set max height of demo result image
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorejb committed Nov 29, 2023
1 parent 66e9961 commit 59cb72c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function popupResult(src: string, viewport: string) {
throw new Error("bodyEl is null");
}

bodyEl.innerHTML = `<img src="${src}" class="img-fluid ${imgClass}" width="320" />`;
bodyEl.innerHTML = `<img src="${src}" class="${imgClass}" style="max-width: min(100%, 320px); max-height: 320px;" />`;
resultModal.show();
}

Expand Down

0 comments on commit 59cb72c

Please sign in to comment.