fix dark mode colors on mobile
This commit is contained in:
parent
56e8a096ee
commit
f542c75638
1 changed files with 1 additions and 1 deletions
|
|
@ -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 rowDelay = piece.startY * 4;
|
||||||
const textColor = '#ffffff';
|
const textColor = '#ffffff';
|
||||||
const isStatic = piece.label === 'cv' || piece.featured;
|
const isStatic = piece.label === 'cv' || piece.featured;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue