diff --git a/packages/react-sdk/src/css/global-rules.ts b/packages/react-sdk/src/css/global-rules.ts index 3472cead2d..f5cff31a24 100644 --- a/packages/react-sdk/src/css/global-rules.ts +++ b/packages/react-sdk/src/css/global-rules.ts @@ -9,7 +9,8 @@ export const addGlobalRules = ( // @todo we need to figure out all global resets while keeping // the engine aware of all of them. // Ideally, the user is somehow aware and in control of the reset - engine.addPlaintextRule("html {margin: 0; height: 100%}"); + // Layout source https://twitter.com/ChallengesCss/status/1471128244720181258 + engine.addPlaintextRule("html {margin: 0; display: grid; min-height: 100%}"); const fontAssets: FontAsset[] = []; for (const asset of assets.values()) { diff --git a/packages/sdk-components-react/src/body.ws.tsx b/packages/sdk-components-react/src/body.ws.tsx index 156f3528e6..c27221376b 100644 --- a/packages/sdk-components-react/src/body.ws.tsx +++ b/packages/sdk-components-react/src/body.ws.tsx @@ -12,11 +12,6 @@ import type { defaultTag } from "./body"; const presetStyle = { body: [ ...body, - - { - property: "minHeight", - value: { type: "unit", unit: "%", value: 100 }, - }, { property: "fontFamily", value: { type: "keyword", value: "Arial" },