fix: set max-width for image preview

This commit is contained in:
sokumon 2025-07-14 17:59:55 +05:30
parent 6633de8c74
commit ef77a68a32

View file

@ -47,6 +47,7 @@ frappe.ui.form.on("File", {
$preview = $(`<div class="img_preview">
<img
class="img-responsive"
style="max-width: 500px";
src="${frappe.utils.escape_html(frm.doc.file_url)}"
onerror="${frm.toggle_display("preview", false)}"
/>