From f542c75638db66dc48a4e3e38a7b01f5c31d5544 Mon Sep 17 00:00:00 2001 From: vndangkhoa Date: Wed, 29 Apr 2026 15:48:41 +0700 Subject: [PATCH] fix dark mode colors on mobile --- src/App.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index f8e6799..937b61c 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -31,7 +31,7 @@ function TetrisPiece({ piece, isDark }) { } }; - const bgColor = piece.label === 'cv' ? piece.color : piece.color; + const bgColor = piece.label === 'cv' ? piece.color : (isDark ? piece.colorDark : piece.color); const rowDelay = piece.startY * 4; const textColor = '#ffffff'; const isStatic = piece.label === 'cv' || piece.featured;