Add mobile layout: full-width list with bottom sheet card detail
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-05-15 22:33:39 +02:00
parent 62bb3a5175
commit a4014182a0
5 changed files with 162 additions and 71 deletions
+2 -2
View File
@@ -19,9 +19,9 @@ function typeBadge(type) {
const PRINTING_COLS = '80px 1fr 150px 100px';
function CardRow({ card }) {
function CardRow({ card, isMobile }) {
const { expandedCardId, setExpandedCardId, ownedAmounts } = useContext(CardContext);
const isExpanded = expandedCardId === card.id;
const isExpanded = !isMobile && expandedCardId === card.id;
const totalOwned = card.printings?.reduce((sum, p) => {
const key = `${p.set_id}-${p.rarity_id}`;
+1 -1
View File
@@ -9,7 +9,7 @@ const CHIPS = [
function FilterBar({ typeFilter, setTypeFilter, ownedOnly, setOwnedOnly, sortBy, setSortBy }) {
return (
<div style={{ display: 'flex', gap: '8px', alignItems: 'center', flexWrap: 'wrap', margin: '8px 0' }}>
<div style={{ display: 'flex', gap: '8px', alignItems: 'center', margin: '8px 0', overflowX: 'auto', whiteSpace: 'nowrap', scrollbarWidth: 'none' }}>
<div style={{ display: 'flex', gap: '4px' }}>
{CHIPS.map(({ label, activeClass }) => (
<button