From 30f311eaea1924cb2b27045560577d90968e96c6 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Wed, 1 Jul 2020 11:28:41 +0100 Subject: [PATCH] apply border-box globally --- .../src/components/userInterface/AppPreview/iframeTemplate.js | 3 +++ packages/server/src/utilities/builder/index.template.html | 3 +++ 2 files changed, 6 insertions(+) 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) }}