We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e22f6e commit a1d295aCopy full SHA for a1d295a
1 file changed
src/components/Common/PlayerInfo.tsx
@@ -84,11 +84,15 @@ export const PlayerInfo: React.FC<PlayerInfoProps> = ({
84
</div>
85
)}
86
{clock && (
87
- <div className="flex items-center bg-primary px-2 py-0.5">
+ <div
88
+ className={`flex items-center px-2 py-1 ${
89
+ clock.isActive ? 'bg-primary' : 'bg-background-2'
90
+ }`}
91
+ >
92
<span
93
className={`font-mono text-xs font-medium ${
- clock.isActive ? 'text-black' : 'text-black/60'
- } ${currentTime < 60 ? 'text-red-700' : ''}`}
94
+ clock.isActive ? 'text-black' : 'text-secondary/80'
95
+ } ${currentTime < 60 && clock.isActive ? 'text-red-700' : ''}`}
96
>
97
{formatTime(currentTime)}
98
</span>
0 commit comments