diff --git a/SerpentRace_Frontend/src/components/DeckCreator/CardEditor.jsx b/SerpentRace_Frontend/src/components/DeckCreator/CardEditor.jsx index 9ca7797e..da8dfdec 100644 --- a/SerpentRace_Frontend/src/components/DeckCreator/CardEditor.jsx +++ b/SerpentRace_Frontend/src/components/DeckCreator/CardEditor.jsx @@ -189,20 +189,7 @@ export default function CardEditor({ card, isCreating, cardType, onSave, onCance // Ha nincs kiválasztott kártya vagy új kártya létrehozás if (!cardData) { - return ( -
-
-
🃏
-
- Válassz ki egy kártyát -
-
- Klikkelj egy kártyára a bal oldalon a szerkesztéshez,
- vagy hozz létre egy újat. -
-
-
- ) + return null } return ( @@ -231,22 +218,22 @@ export default function CardEditor({ card, isCreating, cardType, onSave, onCance )} {/* Header */} -
-
+
+
-
+
{cardData.type === 'QUESTION' && '📋'} {cardData.type === 'JOKER' && '🃏'} {cardData.type === 'LUCK' && '🎲'}
-

+

{isCreating ? 'Új' : 'Szerkesztés'} {' '} {(isCreating ? cardType : cardData.type) === 'QUESTION' && 'Feladat kártya'} {(isCreating ? cardType : cardData.type) === 'JOKER' && 'Joker kártya'} {(isCreating ? cardType : cardData.type) === 'LUCK' && 'Szerencse kártya'}

-
+
{cardData.type === 'QUESTION' && cardData.subType && ( <> {cardData.subType === 'quiz' && 'Quiz (A/B/C/D)'} @@ -259,19 +246,19 @@ export default function CardEditor({ card, isCreating, cardType, onSave, onCance
-
+
@@ -297,13 +284,13 @@ export default function CardEditor({ card, isCreating, cardType, onSave, onCance
{/* Content */} -
+
{showPreview ? ( -
+
) : ( -
+
{cardData.type === 'QUESTION' && ( +
{/* Top Row - Title and Actions */} -
-
+
+
-

+

📝 Pakli Szerkesztés

-
+
{deck.id && ( )}
- {/* Main Content Row */} -
- {/* Two Column Layout */} -
- {/* Deck Name - Takes up 2 columns */} -
- - handleInputChange('name', e.target.value)} - className="w-full px-4 py-2 rounded-xl bg-[color:var(--color-background)] border border-[color:var(--color-surface-selected)] text-[color:var(--color-text)] focus:ring-2 focus:ring-[color:var(--color-success)] focus:border-transparent outline-none transition-all duration-200" - placeholder="Add meg a pakli nevét..." - /> -
- - {/* Empty space for visual balance */} -
-
+ {/* Collapsible Details Section */} +
+ + + {isDetailsExpanded && ( +
+ {/* Two Column Layout */} +
+ {/* Deck Name - Takes up 2 columns */} +
+ + handleInputChange('name', e.target.value)} + className="w-full px-4 py-2 rounded-xl bg-[color:var(--color-background)] border border-[color:var(--color-surface-selected)] text-[color:var(--color-text)] focus:ring-2 focus:ring-[color:var(--color-success)] focus:border-transparent outline-none transition-all duration-200" + placeholder="Add meg a pakli nevét..." + /> +
+ + {/* Empty space for visual balance */} +
+
- {/* Type, Privacy and Description Row */} -
+ {/* Type, Privacy and Description Row */} +
{/* Deck Type */}
-
+
+
+ )}
) diff --git a/SerpentRace_Frontend/src/components/DeckCreator/DeckManager.jsx b/SerpentRace_Frontend/src/components/DeckCreator/DeckManager.jsx index d1085097..4f1efb16 100644 --- a/SerpentRace_Frontend/src/components/DeckCreator/DeckManager.jsx +++ b/SerpentRace_Frontend/src/components/DeckCreator/DeckManager.jsx @@ -147,10 +147,10 @@ const DeckManager = () => { return (
-
+
{/* Filters */} -
-
+
+
setSearch(e.target.value)} @@ -158,10 +158,10 @@ const DeckManager = () => { placeholder="Keresés..." className="mr-4" /> - - Típus: + + Típus: ))} - Eredet: + Eredet: - + Rendezés: