Use 100% height for the whole app

Makes it way easier to handle overflows in individual sections
This commit is contained in:
rijkvanzanten
2020-02-07 17:35:58 -05:00
parent 6c10b21d34
commit 10e779b81e
2 changed files with 5 additions and 14 deletions

View File

@@ -6,15 +6,3 @@
document.body.appendChild(script);
});
</script>
<!--
These custom styles are injected in the Storybook iframe. The default Directus styles remove the
padding from the body, which looks kinda janky in Storybook
-->
<style>
#root {
height: 100%;
}
</style>

View File

@@ -17,7 +17,6 @@
html {
font-size: 15px;
height: 100%;
}
body {
@@ -30,13 +29,17 @@ body {
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
background-color: var(--page-background-color);
height: 100%;
&:not(.user-is-tabbing) * {
outline: 0;
}
}
html, body, #root {
height: 100%;
width: 100%;
}
input, textarea, [contenteditable], .selectable {
user-select: text;
}