Custom code components causing infinite height

elements styled with 100vh in custom code components seem to do the infinite height thing in the plasmic editor.

This is unfortunately a limitation of the current canvas artboards model, but you can work around it by conditionally setting the heights to a fixed pixel value if you are inside the studio canvas, which you can check by calling the use plasmic canvas context hook. (We will also be evolving the normal non-design editing mode to use normal viewports which will resolve this and other related issues, but it’s unfortunately a fundamental limitation of the artboards which auto size to the full page)

Thanks Yang – I’ll put the context hook to use!