diff --git a/src/application/routes/app/home.rs b/src/application/routes/app/home.rs index 8b2697e..86ebdd7 100644 --- a/src/application/routes/app/home.rs +++ b/src/application/routes/app/home.rs @@ -63,7 +63,7 @@ async fn load_home_content(state: &AppState) -> Result { ); let open_bags_req = ListRequest::new( 1, - PageSize::limited(3), + PageSize::All, BagSortKey::UpdatedAt, SortDirection::Desc, ); diff --git a/static/css/input.css b/static/css/input.css index 3ae668a..9ceceba 100644 --- a/static/css/input.css +++ b/static/css/input.css @@ -88,6 +88,16 @@ a { text-decoration: none; } +/* ── Scrollbar hide ───────────────────────────────────────────── */ + +@utility scrollbar-hide { + -ms-overflow-style: none; + scrollbar-width: none; + &::-webkit-scrollbar { + display: none; + } +} + /* ── Form controls ─────────────────────────────────────────────── */ .input-field { diff --git a/templates/pages/home.html b/templates/pages/home.html index 2c7b12f..5827921 100644 --- a/templates/pages/home.html +++ b/templates/pages/home.html @@ -159,7 +159,7 @@ >View all bags → -
+
{% for bag in open_bags %} {{ bag_card::card(bag, is_authenticated) }} {% endfor %}
diff --git a/templates/partials/bag_card.html b/templates/partials/bag_card.html index beacb23..5fbabd0 100644 --- a/templates/partials/bag_card.html +++ b/templates/partials/bag_card.html @@ -1,29 +1,36 @@ {% import "partials/icons.html" as icons %} {% macro card(bag, is_authenticated) %} -
-
- {{ bag.roast_name }} -

{{ bag.roaster_name }}

-
-
-
-
-

{{ bag.remaining }} / {{ bag.amount }}g

+
{% if is_authenticated %} - {% endmacro %} diff --git a/templates/partials/icons.html b/templates/partials/icons.html index d7be99f..1f079ea 100644 --- a/templates/partials/icons.html +++ b/templates/partials/icons.html @@ -157,3 +157,9 @@ {% endmacro %} + +{% macro x_mark(class) %} + +{% endmacro %}