Allow to hide the search menu

This is more convenient on small screens
This commit is contained in:
Eike Kettner
2020-05-17 15:03:31 +02:00
parent f45b40342c
commit 62111e5f93
4 changed files with 54 additions and 17 deletions

View File

@ -17,6 +17,7 @@ type alias Model =
, itemListModel : Comp.ItemCardList.Model
, searchInProgress : Bool
, viewMode : ViewMode
, menuCollapsed : Bool
}
@ -26,6 +27,7 @@ emptyModel =
, itemListModel = Comp.ItemCardList.init
, searchInProgress = False
, viewMode = Listing
, menuCollapsed = False
}
@ -36,6 +38,7 @@ type Msg
| ItemCardListMsg Comp.ItemCardList.Msg
| ItemSearchResp (Result Http.Error ItemLightList)
| DoSearch
| ToggleSearchMenu
type ViewMode