pop36
This commit is contained in:
parent
25671fda3d
commit
ea46216955
@ -381,14 +381,29 @@ body {
|
|||||||
display: grid;
|
display: grid;
|
||||||
|
|
||||||
grid-template-columns: repeat(8, 70px);
|
grid-template-columns: repeat(8, 70px);
|
||||||
grid-template-rows: repeat(4, 70px);
|
grid-auto-rows: 70px;
|
||||||
|
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
|
|
||||||
max-height: 320px;
|
width: max-content;
|
||||||
overflow-y: auto;
|
|
||||||
|
margin: 0 auto;
|
||||||
|
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
|
||||||
|
max-height: 320px;
|
||||||
|
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
#inventory-wrapper {
|
||||||
|
width: 620px;
|
||||||
|
|
||||||
|
margin: 0 auto;
|
||||||
|
|
||||||
|
max-height: 320px;
|
||||||
|
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.inventory-slot {
|
.inventory-slot {
|
||||||
|
|||||||
@ -53,7 +53,9 @@ export async function loadWohnhaus() {
|
|||||||
|
|
||||||
<h3>Inventar</h3>
|
<h3>Inventar</h3>
|
||||||
|
|
||||||
|
<div id="inventory-wrapper">
|
||||||
<div id="inventory-grid"></div>
|
<div id="inventory-grid"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@ -107,7 +109,8 @@ async function loadInventory() {
|
|||||||
|
|
||||||
/* feste 32 slots erzeugen */
|
/* feste 32 slots erzeugen */
|
||||||
|
|
||||||
for (let i = 0; i < 32; i++) {
|
const totalSlots = Math.max(32, items.length);
|
||||||
|
for (let i = 0; i < totalSlots; i++) {
|
||||||
const item = items[i];
|
const item = items[i];
|
||||||
|
|
||||||
if (item) {
|
if (item) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user