diff --git a/src/components/CardSearch.tsx b/src/components/CardSearch.tsx index a3711b6..41a57f5 100644 --- a/src/components/CardSearch.tsx +++ b/src/components/CardSearch.tsx @@ -617,7 +617,7 @@ const CardSearch = () => { )} {searchResults && searchResults.length > 0 && ( -
+
{searchResults.map((card) => { const currentFaceIndex = getCurrentFaceIndex(card.id); const isMultiFaced = isDoubleFaced(card); @@ -646,46 +646,42 @@ const CardSearch = () => { e.stopPropagation(); toggleCardFace(card.id, card.card_faces!.length); }} - className="absolute bottom-2 right-2 bg-purple-600 hover:bg-purple-700 text-white p-2 rounded-full shadow-lg transition-all" + className="absolute bottom-1 right-1 bg-purple-600 hover:bg-purple-700 text-white p-1.5 sm:p-2 rounded-full shadow-lg transition-all" title="Flip card" > - + )} + {inCollection > 0 && ( + + + x{inCollection} + + )}
-
-
-

{displayName}

- {inCollection > 0 && ( - - - x{inCollection} - - )} -
-

+

+

{displayName}

+

{isMultiFaced && card.card_faces ? card.card_faces[currentFaceIndex]?.type_line || card.type_line : card.type_line}

{card.prices?.usd && ( -
${card.prices.usd}
+
${card.prices.usd}
)} diff --git a/src/components/Collection.tsx b/src/components/Collection.tsx index 961c455..c64819f 100644 --- a/src/components/Collection.tsx +++ b/src/components/Collection.tsx @@ -228,7 +228,7 @@ export default function Collection() {

Try a different search term

) : ( -
+
{filteredCollection.map(({ card, quantity }) => { const currentFaceIndex = getCurrentFaceIndex(card.id); const isMultiFaced = isDoubleFaced(card); diff --git a/src/components/Community.tsx b/src/components/Community.tsx index 088c7c6..b1023a3 100644 --- a/src/components/Community.tsx +++ b/src/components/Community.tsx @@ -465,6 +465,7 @@ export default function Community() { onClose={() => setShowTradeCreator(false)} onTradeCreated={() => { setShowTradeCreator(false); + loadTradesData(); toast.success('Trade proposal sent!'); }} />