plasmicapp/plasmic

Missing "Rows gap" option for code components with "Vertical stack" style

donalffons opened this issue ยท 3 comments

When I add a "Vertical stack" element in Plasmic studio, I have the usual option for "Rows gap":
image
This is what I want.

However, with any code component (created via PLASMIC.registerComponent and styleSections: true), the option is missing.
image

My current work-around is to change the layout to "Document layout"...
image

...then set a value for "Gap" there...
image

...and then revert back to "Vertical stack"...
image

...which preserves the "Gap" value in my component's styles - although it is now invisible.
image

I think it would be great if a "Gap" field would be available in this case.

PS: Loving the progress you've been making on Plasmic ๐Ÿ™‚.

yang commented

Wow, that is a crazy ninja workaround! Kudos on finding that.

Yes, we really should allow standard flex Gap here...

Normally we polyfill flex Gap because it's still not quite as widely compatible with some mobile Safari versions that are still in significant numbers. But we can't do this for code components because these are arbitrary user supplied components. But we should probably just allow it anyway, and possibly provide warnings about it that you can dismiss.

Actually we just pushed an update to enable setting flex gap on code components! It will be the css-only, non-polyfilled variety.

Thanks a lot!