From 2a53648c65da2455a546aa3ddae77746b1dc5496 Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Thu, 29 Oct 2020 22:48:21 +0100 Subject: [PATCH] Allow to click to start searching Search bar starts searching when *enter* is pressed and now additionally using a button (which is more convenient on mobile). --- website/elm/Search.elm | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/website/elm/Search.elm b/website/elm/Search.elm index e62c732c..c9204b9d 100644 --- a/website/elm/Search.elm +++ b/website/elm/Search.elm @@ -104,8 +104,8 @@ view model = [ class "form" , onSubmit SubmitSearch ] - [ div [ class "dropdown field is-active is-fullwidth" ] - [ div [ class "control has-icons-right is-fullwidth" ] + [ div [ class "dropdown field is-active is-fullwidth has-addons" ] + [ div [ class "control is-fullwidth" ] [ input [ class "input" , type_ "text" @@ -114,7 +114,13 @@ view model = , value model.searchInput ] [] - , span [ class "icon is-right is-small" ] + ] + , div [ class "control" ] + [ button + [ class "button is-primary" + , href "#" + , onClick SubmitSearch + ] [ img [ src "/icons/search-20.svg" ] [] ] ]