diff --git a/src/components/GameTable.tsx b/src/components/GameTable.tsx index 04ca1f5..e405e36 100644 --- a/src/components/GameTable.tsx +++ b/src/components/GameTable.tsx @@ -900,9 +900,10 @@ function Backdrop({ children }: { children: React.ReactNode }) { initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} - className="absolute inset-0 z-40 flex items-center justify-center bg-navy-950/70 backdrop-blur-sm p-5" + className="absolute inset-0 z-40 overflow-y-auto overscroll-contain bg-navy-950/70 backdrop-blur-sm" > - {children} + {/* min-h-full + centering: centers short panels, scrolls tall ones (no clip). */} +
{children}
); } diff --git a/src/components/online/DailyRewardModal.tsx b/src/components/online/DailyRewardModal.tsx index f05a53c..bc3f3f3 100644 --- a/src/components/online/DailyRewardModal.tsx +++ b/src/components/online/DailyRewardModal.tsx @@ -72,7 +72,7 @@ export function DailyRewardModal() { exit={{ scale: 0.9, opacity: 0 }} transition={{ type: "spring", stiffness: 220, damping: 20 }} onClick={(e) => e.stopPropagation()} - className="glass rounded-3xl p-7 w-full max-w-sm text-center relative overflow-hidden" + className="glass rounded-3xl p-7 w-full max-w-sm text-center relative max-h-[88dvh] overflow-y-auto overflow-x-hidden" > {/* gold glow */}
diff --git a/src/components/online/PostMatchRewardsModal.tsx b/src/components/online/PostMatchRewardsModal.tsx index 0d12bf7..3126b91 100644 --- a/src/components/online/PostMatchRewardsModal.tsx +++ b/src/components/online/PostMatchRewardsModal.tsx @@ -83,7 +83,7 @@ export function PostMatchRewardsModal({ initial={{ scale: 0.82, y: 28 }} animate={{ scale: 1, y: 0 }} transition={{ type: "spring", stiffness: 200, damping: 18 }} - className="glass rounded-3xl p-7 w-full max-w-sm text-center relative max-h-[90vh] overflow-y-auto overflow-x-hidden" + className="glass rounded-3xl p-7 w-full max-w-sm text-center relative max-h-[88dvh] overflow-y-auto overflow-x-hidden" > {/* radiating bg glow */}
+
{children}
);