code icon indicating copy to clipboard operation
code copied to clipboard

[Web/css/figma] Figma autolayout stretch with padding, the padding should not effect the final size. while `flex: 1`

Open softmarshmallow opened this issue 4 years ago • 0 comments

Origin design image source: https://www.figma.com/file/HSozKEVWhh8saZa2vr1Nxd/code.grida.co-(design-to-code)?node-id=734%3A11411

Generated image

The problem when using padding

on image off image

Reference

https://stackoverflow.com/questions/37785345/how-to-get-flexbox-to-include-padding-in-calculations

softmarshmallow avatar Dec 09 '21 19:12 softmarshmallow