fix Portfolio light theme shows actual color

This commit is contained in:
vndangkhoa 2026-04-29 17:05:14 +07:00
parent 245fbf7697
commit abd73a4864

View file

@ -49,10 +49,8 @@ function TetrisPiece({ piece, isDark }) {
// For desktop non-static: start gray, show hover color when hovering
// For mobile dark: use colorDark for less gray
// For mobile light: use actual color
const bgColor = piece.label === 'cv'
const bgColor = (piece.label === 'cv' || isStatic)
? piece.color
: (isStatic)
? piece.color // Static pieces show color immediately
: (isMobile && isDark)
? (color || piece.colorDark || piece.color)
: (isMobile)