Improve the layout of the purchase filter bar

This commit is contained in:
2026-06-09 18:55:49 +02:00
parent 231fa483e7
commit 835caf6a71
+22 -14
View File
@@ -1163,20 +1163,6 @@ def PurchaseFilterBar(
).has_default(), ).has_default(),
), ),
), ),
],
),
Div(
attributes=[("class", "flex items-end gap-4 mb-4")],
children=[
_filter_checkbox("filter-refunded", "Refunded", is_refunded_value),
_filter_checkbox("filter-infinite", "Infinite", infinite_value),
_filter_checkbox(
"filter-needs-price-update",
"Needs Price Update",
needs_price_update_value,
),
],
),
Div( Div(
attributes=[("class", _FILTER_GRID_CLASS)], attributes=[("class", _FILTER_GRID_CLASS)],
children=[ children=[
@@ -1212,6 +1198,8 @@ def PurchaseFilterBar(
), ),
], ],
), ),
_filter_field(
"Price",
RangeSlider( RangeSlider(
label="Price", label="Price",
input_name_prefix="filter-price", input_name_prefix="filter-price",
@@ -1222,6 +1210,9 @@ def PurchaseFilterBar(
min_placeholder="0.00", min_placeholder="0.00",
max_placeholder="100.00", max_placeholder="100.00",
), ),
),
_filter_field(
"Games in purchase",
RangeSlider( RangeSlider(
label="Games in purchase", label="Games in purchase",
input_name_prefix="filter-num-purchases", input_name_prefix="filter-num-purchases",
@@ -1233,6 +1224,23 @@ def PurchaseFilterBar(
min_placeholder="e.g. 1", min_placeholder="e.g. 1",
max_placeholder="e.g. 5", max_placeholder="e.g. 5",
), ),
),
Div(
attributes=[("class", "flex flex-col items-start gap-4 mb-4")],
children=[
_filter_checkbox(
"filter-refunded", "Refunded", is_refunded_value
),
_filter_checkbox("filter-infinite", "Infinite", infinite_value),
_filter_checkbox(
"filter-needs-price-update",
"Needs Price Update",
needs_price_update_value,
),
],
),
],
),
] ]
return _filter_bar(fields, filter_json, preset_list_url, preset_save_url) return _filter_bar(fields, filter_json, preset_list_url, preset_save_url)