This commit is contained in:
cay 2026-04-12 12:10:24 +01:00
parent 0e5164de23
commit 7690907085
2 changed files with 5 additions and 3 deletions

View File

@ -727,8 +727,9 @@ body {
.hand-slot.hand-slot--filled::before {
display: none !important;
}
/* Karten-Bild immer über dem ::before pseudo-element */
.hand-slot img {
/* Karten-Bild über dem ::before pseudo-element
NUR für hand-slot-card (nicht für den Deck-Stapel mit position:absolute imgs) */
.hand-slot-card img {
position: relative;
z-index: 1;
border-radius: calc(var(--s) * 9);

View File

@ -429,7 +429,7 @@
if (!state) {
slot.innerHTML = '<span class="hs-icon">🃏</span>';
slot.classList.remove("hand-slot-ready");
slot.classList.remove("hand-slot-ready", "hand-slot--filled");
slot.draggable = false;
delete slot.dataset.cardSlotId;
return;
@ -474,6 +474,7 @@
</div>${statsHtml}${readyBadge}`;
slot.classList.toggle("hand-slot-ready", isReady);
slot.classList.add("hand-slot--filled"); // Hintergrund + ::before entfernen
// Drag & Drop: nur wenn Karte bereit UND mein Zug
if (isReady && isMyTurn) {