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