TF-2774 Fix big image dimension in signature

This commit is contained in:
dab246
2024-04-04 16:22:07 +07:00
committed by Dat H. Pham
parent 700b7616f9
commit 3c4fa63970
3 changed files with 5 additions and 2 deletions
@@ -24,6 +24,9 @@ class ImageTransformer extends DomTransformer {
await Future.wait(imageElements.map((imageElement) async {
var exStyle = imageElement.attributes['style'];
if (exStyle != null) {
if (!exStyle.trim().endsWith(';')) {
exStyle = '$exStyle;';
}
if (!exStyle.contains('display')) {
exStyle = '$exStyle display:inline;';
}