mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
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).
This commit is contained in:
@ -104,8 +104,8 @@ view model =
|
|||||||
[ class "form"
|
[ class "form"
|
||||||
, onSubmit SubmitSearch
|
, onSubmit SubmitSearch
|
||||||
]
|
]
|
||||||
[ div [ class "dropdown field is-active is-fullwidth" ]
|
[ div [ class "dropdown field is-active is-fullwidth has-addons" ]
|
||||||
[ div [ class "control has-icons-right is-fullwidth" ]
|
[ div [ class "control is-fullwidth" ]
|
||||||
[ input
|
[ input
|
||||||
[ class "input"
|
[ class "input"
|
||||||
, type_ "text"
|
, type_ "text"
|
||||||
@ -114,7 +114,13 @@ view model =
|
|||||||
, value model.searchInput
|
, 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" ] []
|
[ img [ src "/icons/search-20.svg" ] []
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user