@builds-dev/react-ui
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -450,3 +450,3 @@ 'use strict'; | ||
var css_248z = ".body_b1yx4jx3 {display: flex; \tflex-direction: column; \tflex-wrap: nowrap; \talign-items: flex-start; \tjustify-content: flex-start; \tmargin: 0; \tmin-height: 100%; \tpadding: 0;}\n\n.body_root_element_b1dynhyx {display: flex; \tflex-direction: column; \tflex-wrap: nowrap; \talign-items: flex-start; \tjustify-content: flex-start; \tflex: 1 0 auto; \twidth: 100%;}\n\n"; | ||
var css_248z = ".body_b1yx4jx3 {display: flex; \tflex-direction: column; \tflex-wrap: nowrap; \talign-items: flex-start; \tjustify-content: flex-start; \tmargin: 0; \tmin-height: 100vh; \tpadding: 0;}\n\n.body_root_element_b1dynhyx {display: flex; \tflex-direction: column; \tflex-wrap: nowrap; \talign-items: flex-start; \tjustify-content: flex-start; \tflex: 1 0 auto; \twidth: 100%;}\n\n"; | ||
styleInject(css_248z); | ||
@@ -460,6 +460,2 @@ | ||
justify-content: flex-start; | ||
`; // TODO: body { min-height: 100vh; } with no explicit html height may be better | ||
const html_css = ` | ||
height: 100%; | ||
`; | ||
@@ -469,3 +465,3 @@ const body_css = ` | ||
margin: 0; | ||
min-height: 100%; | ||
min-height: 100vh; | ||
padding: 0; | ||
@@ -491,3 +487,2 @@ `; | ||
uninject_body_style(); | ||
uninject_html_style(); | ||
}; | ||
@@ -504,3 +499,2 @@ | ||
const uninject_body_style = inject_style(`body { ${body_css} }`); | ||
const uninject_html_style = inject_style(`html { ${html_css} }`); | ||
document.body.append(root_element); | ||
@@ -507,0 +501,0 @@ return { |
{ | ||
"name": "@builds-dev/react-ui", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "A library of React components that abstract over HTML and CSS, for building UIs from high-level, simple expressions.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
49273
1023