fixed match modal centering on iphone

prevented body scroll when modal shows

viewport units and mobile responsive fixes
overflow hidden on body/html when match popup active
mobile media queries for smaller screens

terry davis would be proud of this viewport handling
This commit is contained in:
Mathieu Moran
2025-12-28 04:47:06 -05:00
parent 0072e57abc
commit 91bcaea90a
2 changed files with 53 additions and 2 deletions
+6
View File
@@ -254,12 +254,18 @@ function showMatchPopup() {
rightProfileImg.src = bricks[currentIndex].image;
}
matchPopup.classList.add('show');
// Prevent body scrolling
document.body.style.overflow = 'hidden';
document.documentElement.style.overflow = 'hidden';
}
}
function hideMatchPopup() {
if (matchPopup) {
matchPopup.classList.remove('show');
// Restore body scrolling
document.body.style.overflow = '';
document.documentElement.style.overflow = '';
}
}