feat: adjust card dimensions for 'cutout' view mode
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user