Combine search options into a row

This commit is contained in:
Correl Roush 2022-02-11 01:09:58 -05:00
parent 40868e170b
commit e73003aace

View file

@ -397,21 +397,23 @@ searchBar model =
, label = E.text "Search"
}
]
, Input.radio [ E.padding 10 ]
{ onChange = UpdateCriteria << UpdateSortBy
, selected = Just model.criteria.sortBy
, label = Input.labelLeft [ Font.color colors.text ] (E.text "Sort by")
, options =
[ Input.option "rarity" <| E.el [ Font.color colors.text ] <| E.text "Rarity DESC"
, Input.option "price" <| E.el [ Font.color colors.text ] <| E.text "Price DESC"
]
}
, Input.checkbox []
{ onChange = UpdateCriteria << UpdateOwnedOnly
, icon = Input.defaultCheckbox
, checked = model.criteria.ownedOnly
, label = Input.labelRight [ Font.color colors.text ] (E.text "Owned only?")
}
, E.row [ E.spacing 10 ]
[ Input.radio [ E.padding 10 ]
{ onChange = UpdateCriteria << UpdateSortBy
, selected = Just model.criteria.sortBy
, label = Input.labelLeft [ Font.color colors.text ] (E.text "Sort by")
, options =
[ Input.option "rarity" <| E.el [ Font.color colors.text ] <| E.text "Rarity DESC"
, Input.option "price" <| E.el [ Font.color colors.text ] <| E.text "Price DESC"
]
}
, Input.checkbox []
{ onChange = UpdateCriteria << UpdateOwnedOnly
, icon = Input.defaultCheckbox
, checked = model.criteria.ownedOnly
, label = Input.labelRight [ Font.color colors.text ] (E.text "Owned only?")
}
]
]