Browse Source

forgot to add height variable to html and body

main
Adrian Baumgart 1 month ago
parent
commit
ae1128c57e
Signed by: exc_bad_access GPG Key ID: B6CC77BC47B56030
  1. 1
      components/Page.js
  2. 1
      styles/globals.css

1
components/Page.js

@ -6,7 +6,6 @@ import { useEffect } from 'react';
export default function Page({ title, children }) {
useEffect(() => {
console.log('hi');
const appHeight = () => {
const doc = document.documentElement;
doc.style.setProperty('--app-height', `${window.innerHeight}px`);

1
styles/globals.css

@ -3,6 +3,7 @@ body {
padding: 0;
margin: 0;
min-height: 100vh;
min-height: var(--app-height) !important;
position: relative;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;

Loading…
Cancel
Save