mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-24 19:38:24 +00:00
Allow to hide the search menu
This is more convenient on small screens
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user