Adjust box sizing for red boxes

Ensure red boxes do not exceed the size of black boxes during the animation sequence.
This commit is contained in:
gpt-engineer-app[bot] 2025-08-22 10:59:17 +00:00
parent dc0872c3a8
commit 5f22a2f578

View file

@ -476,11 +476,11 @@ const BulgarianSolitaire: React.FC<BulgarianSolitaireProps> = ({ showSocialShare
onDoubleClick={() => handleDoubleClick(boxId)}
className={`w-8 h-8 rounded cursor-move transition-all duration-300 flex items-center justify-center text-xs font-medium mx-auto ${
highlightedBoxes.has(boxId) && animationPhase === 'fade-to-red'
? 'animate-fade-to-red shadow-lg scale-110 text-white'
? 'animate-fade-to-red shadow-lg text-white'
: highlightedBoxes.has(boxId) && (animationPhase === 'red-pause' || animationPhase === 'moving')
? 'bg-red-500 text-white shadow-lg scale-110'
? 'bg-red-500 text-white shadow-lg'
: highlightedBoxes.has(boxId) && animationPhase === 'fade-from-red'
? 'animate-fade-from-red shadow-lg scale-110'
? 'animate-fade-from-red shadow-lg'
: 'bg-primary text-primary-foreground hover:bg-primary/80'
}`}
title="Drag to move or double-click to move to last-used column"