Fix: number visibility on active fretboard dots
This commit is contained in:
1 parent
83280e70cb
commit
d7448a4c68
2 files changed
+6
-4
No files matched your search
+3
-2
@@ -385,11 +385,12 @@ function SongPlayer({ parts, detected, listening, onStartMic }) {
|
|||||||
strokeWidth={isOpen?2.5:0}
|
strokeWidth={isOpen?2.5:0}
|
||||||
opacity={opacity}/>
|
opacity={opacity}/>
|
||||||
<text x={cx} y={cy+5} textAnchor="middle" fontSize={14}
|
<text x={cx} y={cy+5} textAnchor="middle" fontSize={14}
|
||||||
fill={isOpen?(isHit?C.sage:C.amber):"#1A1A1F"} fontWeight="800" fontFamily="monospace">
|
fill={isOpen?(isHit?"#1A1A1F":isCur?"#1A1A1F":C.amber):"#1A1A1F"}
|
||||||
|
fontWeight="900" fontFamily="monospace">
|
||||||
{ni+1}
|
{ni+1}
|
||||||
</text>
|
</text>
|
||||||
{isCur && (
|
{isCur && (
|
||||||
<text x={cx} y={cy-22} textAnchor="middle" fontSize={18}>🎸</text>
|
<text x={cx} y={cy-24} textAnchor="middle" fontSize={20}>🎸</text>
|
||||||
)}
|
)}
|
||||||
</g>
|
</g>
|
||||||
);
|
);
|
||||||
|
|||||||
+3
-2
@@ -406,11 +406,12 @@ function SongPlayer({ parts, detected, listening, onStartMic }) {
|
|||||||
strokeWidth={isOpen?2.5:0}
|
strokeWidth={isOpen?2.5:0}
|
||||||
opacity={opacity}/>
|
opacity={opacity}/>
|
||||||
<text x={cx} y={cy+5} textAnchor="middle" fontSize={14}
|
<text x={cx} y={cy+5} textAnchor="middle" fontSize={14}
|
||||||
fill={isOpen?(isHit?C.sage:C.amber):"#1A1A1F"} fontWeight="800" fontFamily="monospace">
|
fill={isOpen?(isHit?"#1A1A1F":isCur?"#1A1A1F":C.amber):"#1A1A1F"}
|
||||||
|
fontWeight="900" fontFamily="monospace">
|
||||||
{ni+1}
|
{ni+1}
|
||||||
</text>
|
</text>
|
||||||
{isCur && (
|
{isCur && (
|
||||||
<text x={cx} y={cy-22} textAnchor="middle" fontSize={18}>🎸</text>
|
<text x={cx} y={cy-24} textAnchor="middle" fontSize={20}>🎸</text>
|
||||||
)}
|
)}
|
||||||
</g>
|
</g>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user