Replace zebra bg with border separator on printing rows
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-05-15 21:26:17 +02:00
parent 5eaa5b126a
commit f65a2841da
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -66,13 +66,12 @@ function CardRow({ card }) {
}}>
<span>Code</span><span>Set</span><span>Rarity</span><span>Owned</span>
</div>
{card.printings.map((printing, i) => (
{card.printings.map(printing => (
<PrintingRow
key={`${card.id}-${printing.set_id}-${printing.rarity_id}`}
card_id={card.id}
printing={printing}
cols={PRINTING_COLS}
zebra={i % 2 === 1}
/>
))}
</div>
+2 -2
View File
@@ -2,7 +2,7 @@ import React, { useContext, useState } from 'react';
import { CardContext } from '../../store/CardContext';
import { updateCardAmount } from '../../services/api';
function PrintingRow({ card_id, printing, cols, zebra }) {
function PrintingRow({ card_id, printing, cols }) {
const { ownedAmounts, updateAmount } = useContext(CardContext);
const [loading, setLoading] = useState(false);
@@ -27,7 +27,7 @@ function PrintingRow({ card_id, printing, cols, zebra }) {
display: 'grid', gridTemplateColumns: cols,
gap: '8px', padding: '7px 16px 7px 32px',
alignItems: 'center', opacity: loading ? 0.5 : 1,
background: zebra ? '#1c1c1c' : '#161616',
borderBottom: '1px solid #202020',
}}>
<span style={{ fontFamily: 'monospace', fontSize: '11px', color: '#555' }}>
{printing.set_code}