fix: set max-width for image preview
This commit is contained in:
parent
6633de8c74
commit
ef77a68a32
1 changed files with 1 additions and 0 deletions
|
|
@ -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)}"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue