Fix: added viewport styles to img tag

This commit is contained in:
Shailendra1703 2025-09-15 14:29:41 +05:30
parent 2a1294f1c0
commit c7b85b6ba4

View File

@ -104,7 +104,7 @@ class RenderImage extends Operation {
// Add image data to URI
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'>";
}
}