Преглед изворни кода

Using some styling to make the screen heights actually work out and update properly on window resize

Kirk Trombley пре 5 година
родитељ
комит
d05b304d69
2 измењених фајлова са 6 додато и 33 уклоњено
  1. 4 32
      ui/src/App.css
  2. 2 1
      ui/src/App.js

+ 4 - 32
ui/src/App.css

@@ -1,33 +1,5 @@
-.App {
-  text-align: center;
-}
-
-.App-logo {
-  animation: App-logo-spin infinite 20s linear;
-  height: 40vmin;
-  pointer-events: none;
-}
-
-.App-header {
-  background-color: #282c34;
-  min-height: 100vh;
-  display: flex;
-  flex-direction: column;
-  align-items: center;
-  justify-content: center;
-  font-size: calc(10px + 2vmin);
-  color: white;
-}
-
-.App-link {
-  color: #61dafb;
-}
-
-@keyframes App-logo-spin {
-  from {
-    transform: rotate(0deg);
-  }
-  to {
-    transform: rotate(360deg);
-  }
+#root {
+  position: absolute;
+  width: 100% !important;
+  height: 100% !important;
 }

+ 2 - 1
ui/src/App.js

@@ -10,7 +10,8 @@ const App = () => {
       display: "flex",
       flexDirection: "column",
       justifyContent: "space-between",
-      height: "100vh",
+      height: "100%",
+      textAlign: "center",
     }}>
       <div>
         <p>TerrAssumptions!</p>