teleport-code-generators icon indicating copy to clipboard operation
teleport-code-generators copied to clipboard

Add width and height html attr in img tag

Open Utwo opened this issue 3 years ago • 2 comments

Whenever we have width and height in pixels set in styles on element node, add the values to the width and height attributes in image tag without unit.

Utwo avatar May 17 '21 12:05 Utwo

Hey @Utwo, to implement this we have to add attributes here https://github.com/teleporthq/teleport-code-generators/blob/development/packages/teleport-uidl-resolver/src/html-mapping.ts#L21, and anywhere else we have to work?

chavda-bhavik avatar May 25 '21 11:05 chavda-bhavik

Hey @chavda-bhavik this is kind of core thing, needs little more changes and primarily some investigation of the best way to handle. I got your invitation for fixing #545 issue. I will set things for you there :)

JayaKrishnaNamburu avatar May 26 '21 13:05 JayaKrishnaNamburu