feat: adjust card dimensions for 'cutout' view mode

This commit is contained in:
2025-12-22 22:56:48 +01:00
parent eb711c3253
commit 224cc38ba1

View File

@@ -60,7 +60,7 @@ export const CardComponent: React.FC<CardComponentProps> = ({ card, onDragStart,
className={` className={`
relative rounded-lg shadow-md cursor-pointer transition-transform hover:scale-105 select-none relative rounded-lg shadow-md cursor-pointer transition-transform hover:scale-105 select-none
${card.tapped ? 'rotate-45' : ''} ${card.tapped ? 'rotate-45' : ''}
${card.zone === 'hand' ? 'w-32 h-44 -ml-12 first:ml-0 hover:z-10 hover:-translate-y-4' : 'w-24 h-32'} ${card.zone === 'hand' ? 'w-32 h-44 -ml-12 first:ml-0 hover:z-10 hover:-translate-y-4' : (viewMode === 'cutout' ? 'w-24 h-24' : 'w-24 h-32')}
${className || ''} ${className || ''}
`} `}
style={style} style={style}