feat: set default card size and scale values to their minimum in Cube Manager, Draft View, and Deck Builder.
This commit is contained in:
@@ -113,7 +113,7 @@ export const CubeManager: React.FC<CubeManagerProps> = ({ packs, setPacks, avail
|
||||
|
||||
const [cardWidth, setCardWidth] = useState(() => {
|
||||
const saved = localStorage.getItem('cube_cardWidth');
|
||||
return saved ? parseInt(saved) : 140;
|
||||
return saved ? parseInt(saved) : 100;
|
||||
});
|
||||
|
||||
// --- Persistence Effects ---
|
||||
|
||||
@@ -202,7 +202,7 @@ export const DeckBuilderView: React.FC<DeckBuilderViewProps> = ({ initialPool, a
|
||||
const [timer] = useState<string>("Unlimited");
|
||||
const [layout, setLayout] = useState<'vertical' | 'horizontal'>('vertical');
|
||||
const [viewMode, setViewMode] = useState<'list' | 'grid' | 'stack'>('grid');
|
||||
const [cardWidth, setCardWidth] = useState(150);
|
||||
const [cardWidth, setCardWidth] = useState(100);
|
||||
|
||||
const [pool, setPool] = useState<any[]>(initialPool);
|
||||
const [deck, setDeck] = useState<any[]>([]);
|
||||
|
||||
@@ -66,7 +66,7 @@ export const DraftView: React.FC<DraftViewProps> = ({ draftState, currentPlayerI
|
||||
|
||||
const [cardScale, setCardScale] = useState<number>(() => {
|
||||
const saved = localStorage.getItem('draft_cardScale');
|
||||
return saved ? parseFloat(saved) : 0.7;
|
||||
return saved ? parseFloat(saved) : 0.5;
|
||||
});
|
||||
|
||||
const [layout, setLayout] = useState<'vertical' | 'horizontal'>('horizontal');
|
||||
|
||||
Reference in New Issue
Block a user