From 089b9ba2188543e3b76f69be53a9dac85496f151 Mon Sep 17 00:00:00 2001 From: Hazel Noack Date: Thu, 10 Jul 2025 14:22:24 +0200 Subject: [PATCH] cards with overflow --- frontend/assets/style.css | 6 +++++- internal/rendering/config.go | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/assets/style.css b/frontend/assets/style.css index 5f0b5cc..978e8fe 100644 --- a/frontend/assets/style.css +++ b/frontend/assets/style.css @@ -26,7 +26,7 @@ body { display: grid; gap: 5em; - grid-template-rows: 10em 4em; + grid-template-rows: 10em 4em 15em; } .search { @@ -60,10 +60,14 @@ body { } .store-cards { + height: 100%; + width: 100%; display: flex; flex-direction: row; justify-content: space-around; + flex-wrap: wrap; gap: 1em; + overflow: auto; } .card { diff --git a/internal/rendering/config.go b/internal/rendering/config.go index 31c9202..0423191 100644 --- a/internal/rendering/config.go +++ b/internal/rendering/config.go @@ -41,7 +41,7 @@ func DefaultRenderingConfig() RenderingConfig { SearchInputName: "q", StoreFilter: diyhrt.StoreFilter{ - Limit: 4, + Limit: 0, IncludeIds: []int{7}, }, }