Fix: added viewport styles to img tag
This commit is contained in:
parent
2a1294f1c0
commit
c7b85b6ba4
@ -104,7 +104,7 @@ class RenderImage extends Operation {
|
|||||||
// Add image data to URI
|
// Add image data to URI
|
||||||
dataURI += "base64," + toBase64(data);
|
dataURI += "base64," + toBase64(data);
|
||||||
|
|
||||||
return "<img src='" + dataURI + "'>";
|
return "<img src='" + dataURI + "' style='max-width:100%;max-height:100vh;display:block;margin:auto;' alt='Rendered image'>";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user