From 4a5cfb68f1c3c3a01ff08b2b7dc2b5dcd1c4d9a3 Mon Sep 17 00:00:00 2001 From: adlee-was-taken Date: Sun, 22 Feb 2026 18:35:58 -0500 Subject: [PATCH] Set held card offset to 0.48 on mobile portrait Co-Authored-By: Claude Opus 4.6 --- client/app.js | 4 ++-- client/card-animations.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/app.js b/client/app.js index 34aadf7..f1414c0 100644 --- a/client/app.js +++ b/client/app.js @@ -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.55 : 0.35); + const overlapOffset = cardHeight * (isMobilePortrait ? 0.48 : 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.55 : 0.35); + const overlapOffset = cardHeight * (isMobilePortrait ? 0.48 : 0.35); const cardLeft = centerX - cardWidth / 2; const cardTop = deckRect.top - overlapOffset; diff --git a/client/card-animations.js b/client/card-animations.js index 29b3d51..aafaaf1 100644 --- a/client/card-animations.js +++ b/client/card-animations.js @@ -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.55 : 0.35); + const overlapOffset = cardHeight * (isMobilePortrait ? 0.48 : 0.35); return { left: centerX - cardWidth / 2,