Spaces:
Sleeping
Sleeping
Update pages/GameLucky.tsx
Browse files- pages/GameLucky.tsx +4 -4
pages/GameLucky.tsx
CHANGED
|
@@ -148,10 +148,10 @@ export const GameLucky: React.FC = () => {
|
|
| 148 |
|
| 149 |
{/* Left: Red Packet Grid */}
|
| 150 |
<div className="flex-1 overflow-y-auto p-4 md:p-8 custom-scrollbar order-1 md:order-1">
|
| 151 |
-
<div className={`grid gap-
|
| 152 |
-
// Mobile
|
| 153 |
-
'grid-cols-2 ' +
|
| 154 |
-
// Desktop
|
| 155 |
((luckyConfig.cardCount || 9) <= 4 ? 'md:grid-cols-3' :
|
| 156 |
(luckyConfig.cardCount || 9) <= 6 ? 'md:grid-cols-3 lg:grid-cols-4' :
|
| 157 |
'md:grid-cols-4 lg:grid-cols-5')
|
|
|
|
| 148 |
|
| 149 |
{/* Left: Red Packet Grid */}
|
| 150 |
<div className="flex-1 overflow-y-auto p-4 md:p-8 custom-scrollbar order-1 md:order-1">
|
| 151 |
+
<div className={`grid gap-2 md:gap-6 w-full max-w-5xl mx-auto transition-all place-content-center ${
|
| 152 |
+
// Mobile: Use 3 cols if count > 4 to save space
|
| 153 |
+
((luckyConfig.cardCount || 9) <= 4 ? 'grid-cols-2 ' : 'grid-cols-3 ') +
|
| 154 |
+
// Desktop: Keep existing logic
|
| 155 |
((luckyConfig.cardCount || 9) <= 4 ? 'md:grid-cols-3' :
|
| 156 |
(luckyConfig.cardCount || 9) <= 6 ? 'md:grid-cols-3 lg:grid-cols-4' :
|
| 157 |
'md:grid-cols-4 lg:grid-cols-5')
|