Hide search menu by default and add search bar to top

Adds a search bar to the top of the listing page that is the same as
the `All Names` search field in the search menu. Search menu can be
toggled as before.
This commit is contained in:
Eike Kettner
2020-06-13 22:05:16 +02:00
parent 88234986e6
commit e0c8c45061
3 changed files with 59 additions and 6 deletions

View File

@ -38,7 +38,7 @@ init _ =
, itemListModel = Comp.ItemCardList.init
, searchInProgress = False
, viewMode = Listing
, menuCollapsed = False
, menuCollapsed = True
, searchOffset = 0
, moreAvailable = True
, moreInProgress = False
@ -57,6 +57,7 @@ type Msg
| ToggleSearchMenu
| LoadMore
| UpdateThrottle
| SetBasicSearch String
type ViewMode