small tweaks

This commit is contained in:
2019-12-06 16:20:00 +01:00
parent eb04c4f2b4
commit 67251bf405
7 changed files with 117 additions and 85 deletions

View File

@@ -34,12 +34,14 @@ view wealth model =
viewUpdateWealth amount =
[ input
[ class "level-item"
, class "input"
, class "input has-text-right has-background-dark has-text-white"
, classList
[ ( "is-danger", (not << isValid) amount )
, ( "is-success", isValid amount )
]
, value amount
, placeholder "En pièces d'or..."
, style "width" "8em"
, onInput AmountChanged
]
[]
@@ -77,7 +79,7 @@ update : Msg -> Model -> ( Model, Maybe Float )
update msg model =
case msg of
StartEdit ->
( Edit "0.0", Nothing )
( Edit "", Nothing )
QuitEdit ->
( View, Nothing )