File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -114,8 +114,8 @@ export class Left extends Container {
114114 const totalCardsHeight = ( totalCards - 1 ) * spacingBetweenCards ;
115115 const firstCardY = this . _screen . height / 2 - totalCardsHeight / 2 ;
116116
117- // Fixed X position near left edge
118- const cardX = CARD_WIDTH / 2 + CARD_WIDTH / 6 ;
117+ // Fixed X position near left edge, partially off-screen like Hand.js
118+ const cardX = CARD_VISIBLE_RATIO * CARD_WIDTH ;
119119
120120 const middleIndex = ( totalCards - 1 ) / 2 ;
121121
Original file line number Diff line number Diff line change @@ -114,8 +114,8 @@ export class Right extends Container {
114114 const totalCardsHeight = ( totalCards - 1 ) * spacingBetweenCards ;
115115 const firstCardY = this . _screen . height / 2 - totalCardsHeight / 2 ;
116116
117- // Fixed X position near right edge
118- const cardX = this . _screen . width - CARD_WIDTH / 2 - CARD_WIDTH / 6 ;
117+ // Fixed X position near right edge, partially off-screen like Hand.js
118+ const cardX = this . _screen . width - CARD_VISIBLE_RATIO * CARD_WIDTH ;
119119
120120 const middleIndex = ( totalCards - 1 ) / 2 ;
121121
You can’t perform that action at this time.
0 commit comments