This commit is contained in:
Cay 2026-03-13 18:45:42 +00:00
parent 25671fda3d
commit ea46216955
2 changed files with 22 additions and 4 deletions

View File

@ -381,14 +381,29 @@ body {
display: grid;
grid-template-columns: repeat(8, 70px);
grid-template-rows: repeat(4, 70px);
grid-auto-rows: 70px;
gap: 8px;
max-height: 320px;
overflow-y: auto;
width: max-content;
margin: 0 auto;
padding: 10px;
max-height: 320px;
overflow-y: auto;
}
#inventory-wrapper {
width: 620px;
margin: 0 auto;
max-height: 320px;
overflow-y: auto;
}
.inventory-slot {

View File

@ -53,7 +53,9 @@ export async function loadWohnhaus() {
<h3>Inventar</h3>
<div id="inventory-wrapper">
<div id="inventory-grid"></div>
</div>
`;
@ -107,7 +109,8 @@ async function loadInventory() {
/* 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];
if (item) {