| @@ -70,9 +70,10 @@ body.toggle-entity-glow .entity-box:not(.selected) > img{ | |||||
| } | } | ||||
| #main-area { | #main-area { | ||||
| min-height: 0px; | |||||
| display: flex; | display: flex; | ||||
| min-width: 100vw; | |||||
| height: 90vh; | |||||
| flex: 1 0 90vh; | |||||
| width: 100%; | |||||
| flex-direction: row; | flex-direction: row; | ||||
| } | } | ||||
| @@ -173,28 +174,28 @@ body.toggle-entity-glow .entity-box:not(.selected) > img{ | |||||
| #entities { | #entities { | ||||
| position: relative; | |||||
| position: absolute; | |||||
| user-select: none; | user-select: none; | ||||
| width: 100%; | |||||
| height: 100%; | |||||
| } | } | ||||
| #world { | #world { | ||||
| position: relative; | position: relative; | ||||
| flex: 9 0 85vw; | |||||
| min-height: 85vh; | |||||
| max-height: 85vh; | |||||
| flex: 1 0 85vw; | |||||
| height: 100%; | |||||
| overflow: hidden; | overflow: hidden; | ||||
| } | } | ||||
| #menubar { | #menubar { | ||||
| display: flex; | display: flex; | ||||
| flex: 1 0 10vh; | |||||
| flex-direction: row; | flex-direction: row; | ||||
| justify-content: space-evenly; | justify-content: space-evenly; | ||||
| align-items: center; | align-items: center; | ||||
| flex-wrap: wrap; | flex-wrap: wrap; | ||||
| min-height: 10vh; | |||||
| min-width: 100vw; | min-width: 100vw; | ||||
| background: #222; | background: #222; | ||||
| transition: 0.25s; | |||||
| } | } | ||||
| #menubar.hover-delete { | #menubar.hover-delete { | ||||
| @@ -277,7 +278,7 @@ select.menu-item { | |||||
| body #test-canvas { | body #test-canvas { | ||||
| position: fixed; | position: fixed; | ||||
| top: 100vh; | |||||
| top: 500vh; | |||||
| } | } | ||||
| .switch { | .switch { | ||||
| @@ -419,7 +420,7 @@ a { | |||||
| .corner-ribbon { | .corner-ribbon { | ||||
| width: 200px; | width: 200px; | ||||
| background: #e43; | background: #e43; | ||||
| position: absolute; | |||||
| position: fixed; | |||||
| top: 25px; | top: 25px; | ||||
| left: -50px; | left: -50px; | ||||
| text-align: center; | text-align: center; | ||||
| @@ -1344,9 +1344,11 @@ function prepareEntities() { | |||||
| window.addEventListener("resize", () => { | window.addEventListener("resize", () => { | ||||
| entityX = document.querySelector("#entities").getBoundingClientRect().x; | entityX = document.querySelector("#entities").getBoundingClientRect().x; | ||||
| console.log(entityX) | |||||
| canvasWidth = document.querySelector("#display").clientWidth - 100; | canvasWidth = document.querySelector("#display").clientWidth - 100; | ||||
| canvasHeight = document.querySelector("#display").clientHeight - 50; | canvasHeight = document.querySelector("#display").clientHeight - 50; | ||||
| updateSizes(); | updateSizes(); | ||||
| setTimeout(updateSizes, 100) | |||||
| }) | }) | ||||
| document.addEventListener("mousemove", (e) => { | document.addEventListener("mousemove", (e) => { | ||||