Move fret labels above strings to prevent overlap with bottom string dots
This commit is contained in:
+4
-4
@@ -438,10 +438,10 @@ function SongPlayer({ parts, detected, listening, onStartMic }) {
|
|||||||
{p.fret}
|
{p.fret}
|
||||||
</text>
|
</text>
|
||||||
)}
|
)}
|
||||||
{/* Fret label below dot */}
|
{/* Fret label above strings area */}
|
||||||
<text x={cx} y={BOT+16} textAnchor="middle" fontSize={9}
|
<text x={cx} y={TOP-6} textAnchor="middle" fontSize={9}
|
||||||
fill={isCur?C.amber:C.fret} fontFamily="monospace">
|
fill={isCur?C.amber:C.muted} fontFamily="monospace">
|
||||||
{isOpen?"0":p.fret}
|
{isOpen?"open":("fr"+p.fret)}
|
||||||
</text>
|
</text>
|
||||||
{isCur && (
|
{isCur && (
|
||||||
<text x={cx} y={TOP-16} textAnchor="middle" fontSize={20}>🎸</text>
|
<text x={cx} y={TOP-16} textAnchor="middle" fontSize={20}>🎸</text>
|
||||||
|
|||||||
Reference in New Issue
Block a user