fix: larger black key dots, active note names list on piano

This commit is contained in:
2026-04-09 01:07:39 +02:00
parent 2964475df9
commit ed669b2e3a

View File

@@ -110,11 +110,12 @@ export function PianoKeys({ notes }: Props) {
<div
className="absolute rounded-full bg-white"
style={{
width: 6,
height: 6,
bottom: 5,
width: 10,
height: 10,
bottom: 4,
left: '50%',
transform: 'translateX(-50%)',
border: '2px solid hsl(var(--primary))',
}}
/>
)}
@@ -138,6 +139,19 @@ export function PianoKeys({ notes }: Props) {
);
})}
</div>
{/* Active note names — unambiguous list including black keys */}
<div className="flex flex-wrap justify-center gap-1 mt-1">
{notes.map((note) => (
<span
key={note}
className="font-mono font-semibold text-primary"
style={{ fontSize: 9 }}
>
{note}
</span>
))}
</div>
</div>
);
}