aboutsummaryrefslogtreecommitdiff
path: root/src/Views.elm
diff options
context:
space:
mode:
Diffstat (limited to 'src/Views.elm')
-rw-r--r--src/Views.elm18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/Views.elm b/src/Views.elm
index 3a8afed..b74bf98 100644
--- a/src/Views.elm
+++ b/src/Views.elm
@@ -101,8 +101,8 @@ viewAccuracy model =
101 accuracy 101 accuracy
102 102
103 103
104viewWordLengthOptions : Html Msg 104viewWordLengthOptions : Base.Config -> Html Msg
105viewWordLengthOptions = 105viewWordLengthOptions config =
106 let 106 let
107 wl = 107 wl =
108 [ 10, 25, 50, 100 ] 108 [ 10, 25, 50, 100 ]
@@ -117,8 +117,18 @@ viewWordLengthOptions =
117 ] 117 ]
118 (List.map 118 (List.map
119 (\len -> 119 (\len ->
120 li [ css [ display inline ] ] 120 li
121 [ styledButton [ onClick (Base.WordLengthChanged len) ] 121 [ css [ display inline ] ]
122 [ styledButton
123 [ onClick (Base.WordLengthChanged len)
124 , css <|
125 List.singleton <|
126 if config.length == len then
127 textDecoration underline
128
129 else
130 textDecoration Css.none
131 ]
122 [ text <| String.fromInt len ] 132 [ text <| String.fromInt len ]
123 ] 133 ]
124 ) 134 )