diff --git a/packages/builder/src/components/userInterface/AppPreview/iframeTemplate.js b/packages/builder/src/components/userInterface/AppPreview/iframeTemplate.js index c40df27aee..b78f882fe1 100644 --- a/packages/builder/src/components/userInterface/AppPreview/iframeTemplate.js +++ b/packages/builder/src/components/userInterface/AppPreview/iframeTemplate.js @@ -7,6 +7,9 @@ export default ` height: 100%!important; font-family: Roboto !important; } + *, *:before, *:after { + box-sizing: border-box; + } .lay-__screenslot__text { width: 100%; height: 100%; diff --git a/packages/server/src/utilities/builder/index.template.html b/packages/server/src/utilities/builder/index.template.html index 33a7d104ec..58faca7da6 100644 --- a/packages/server/src/utilities/builder/index.template.html +++ b/packages/server/src/utilities/builder/index.template.html @@ -17,6 +17,9 @@ margin: 0px; padding: 0px; } + *, *:before, *:after { + box-sizing: border-box; + } {{ each(options.stylesheets) }}