Set held card mobile portrait offset back to 0.65

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
adlee-was-taken 2026-02-22 18:33:36 -05:00
parent 4a3d62e26e
commit 98aa0823ed
2 changed files with 3 additions and 3 deletions

View File

@ -3546,7 +3546,7 @@ class GolfGame {
// Position card centered, overlapping both piles (lower than before)
// On mobile portrait, place held card fully above the deck/discard area
const isMobilePortrait = document.body.classList.contains('mobile-portrait');
const overlapOffset = cardHeight * (isMobilePortrait ? 0.8 : 0.35);
const overlapOffset = cardHeight * (isMobilePortrait ? 0.65 : 0.35);
const cardLeft = centerX - cardWidth / 2;
const cardTop = deckRect.top - overlapOffset;
this.heldCardFloating.style.left = `${cardLeft}px`;
@ -3609,7 +3609,7 @@ class GolfGame {
const cardWidth = deckRect.width;
const cardHeight = deckRect.height;
const isMobilePortrait = document.body.classList.contains('mobile-portrait');
const overlapOffset = cardHeight * (isMobilePortrait ? 0.8 : 0.35);
const overlapOffset = cardHeight * (isMobilePortrait ? 0.65 : 0.35);
const cardLeft = centerX - cardWidth / 2;
const cardTop = deckRect.top - overlapOffset;

View File

@ -47,7 +47,7 @@ class CardAnimations {
const cardWidth = deckRect.width;
const cardHeight = deckRect.height;
const isMobilePortrait = document.body.classList.contains('mobile-portrait');
const overlapOffset = cardHeight * (isMobilePortrait ? 0.8 : 0.35);
const overlapOffset = cardHeight * (isMobilePortrait ? 0.65 : 0.35);
return {
left: centerX - cardWidth / 2,