This commit is contained in:
cay 2026-04-10 10:24:01 +01:00
parent e072113efd
commit 8d9f890337

View File

@ -34,7 +34,7 @@ export async function loadCardDeck() {
if (!body) return;
currentDeckId = null;
deckCards = [];
deckCards = [];
body.innerHTML = renderShell();
attachShellEvents();
@ -339,7 +339,7 @@ function renderShell() {
flex: 1;
background: linear-gradient(#2a1a08, #1a0f04);
border: 2px solid #6b4b2a; border-radius: 7px;
color: #f0d9a6; font-family: "Cinzel", serif; font-size: 12px;
color: #ffffff; font-family: "Cinzel", serif; font-size: 12px;
padding: 6px 10px; cursor: pointer; outline: none;
}
.kd-deck-select:focus { border-color: #f0d060; }
@ -872,7 +872,10 @@ function attachShellEvents() {
document.getElementById("kd-deck-grid").innerHTML =
`<div class="kd-empty-deck">Kein Deck ausgewählt.</div>`;
document.getElementById("kd-deck-info").innerHTML = "";
renderCollectionGrid(document.getElementById("kd-grid"), userCardsCache);
renderCollectionGrid(
document.getElementById("kd-grid"),
userCardsCache,
);
return;
}
currentDeckId = val;