| @@ -75,6 +75,9 @@ button { | |||||
| height: 90%; | height: 90%; | ||||
| max-height: 80vh; | max-height: 80vh; | ||||
| padding-bottom: 10px; | padding-bottom: 10px; | ||||
| } | |||||
| #buildings-list { | |||||
| overflow-x: hidden; | overflow-x: hidden; | ||||
| overflow-y: scroll; | overflow-y: scroll; | ||||
| } | } | ||||
| @@ -88,6 +91,9 @@ button { | |||||
| max-height: 40vh; | max-height: 40vh; | ||||
| } | } | ||||
| #buildings-list { | |||||
| max-height: 40vh; | |||||
| } | |||||
| } | } | ||||
| #building-tooltip { | #building-tooltip { | ||||
| @@ -52,6 +52,7 @@ | |||||
| <div id="building-tooltip-cost"></div> | <div id="building-tooltip-cost"></div> | ||||
| <div id="building-tooltip-prod"></div> | <div id="building-tooltip-prod"></div> | ||||
| </div> | </div> | ||||
| <div id="buildings-list"></div> | |||||
| </div> | </div> | ||||
| </body> | </body> | ||||
| @@ -379,7 +379,7 @@ function createButtons() { | |||||
| } | } | ||||
| function createBuildings() { | function createBuildings() { | ||||
| let container = document.querySelector("#buildings-area"); | |||||
| let container = document.querySelector("#buildings-list"); | |||||
| for (const [key, value] of Object.entries(buildings)) { | for (const [key, value] of Object.entries(buildings)) { | ||||
| let button = document.createElement("div"); | let button = document.createElement("div"); | ||||