about summary refs log tree commit diff
path: root/website/sandbox/chord-drill-sergeant/src/Main.elm
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-04-11T10·36+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-04-11T10·36+0100
commit2f446d0441c2998b5e7fd455882168d50d49c223 (patch)
tree71355daadd7ccd3f5c7933b2c451f2e6d7ae90da /website/sandbox/chord-drill-sergeant/src/Main.elm
parent3562343c196b381fea7ebff9fc8612ac0ad927ff (diff)
Improve the styling of the piano
Create a more convincing representation of the piano.

I would like to compute the left-offset based on the naturalWidth. That change
is probably forthcoming.
Diffstat (limited to 'website/sandbox/chord-drill-sergeant/src/Main.elm')
-rw-r--r--website/sandbox/chord-drill-sergeant/src/Main.elm2
1 files changed, 1 insertions, 1 deletions
diff --git a/website/sandbox/chord-drill-sergeant/src/Main.elm b/website/sandbox/chord-drill-sergeant/src/Main.elm
index 8878a7ceecf1..2fd557522fbb 100644
--- a/website/sandbox/chord-drill-sergeant/src/Main.elm
+++ b/website/sandbox/chord-drill-sergeant/src/Main.elm
@@ -87,7 +87,7 @@ view : State -> Html Msg
 view (State {selectedChord}) =
   div [] [ p [] [ text (viewChord selectedChord) ]
          , button [ onClick NextChord ] [ text "Next Chord" ]
-         , Piano.render { highlight = [] }
+         , Piano.render { highlight = Theory.notesForChord selectedChord }
          ]
 
 {-| For now, I'm just dumping things onto the page to sketch ideas. -}