From 27301bf6a52d7dfa98a41f56e6bffd1484f06f0e Mon Sep 17 00:00:00 2001 From: louis-19041904 Date: Sun, 16 Aug 2026 23:56:51 +0200 Subject: [PATCH] fix(card-search): keep a single result at normal card width --- .../src/app/shared/ui/card-search/card-search.component.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/src/app/shared/ui/card-search/card-search.component.scss b/webapp/src/app/shared/ui/card-search/card-search.component.scss index 4b96e61b..23ddbd45 100644 --- a/webapp/src/app/shared/ui/card-search/card-search.component.scss +++ b/webapp/src/app/shared/ui/card-search/card-search.component.scss @@ -28,7 +28,9 @@ .cards { display: grid; gap: 1.5rem; - grid-template-columns: repeat(auto-fit, minmax(var(--card-min-width), 1fr)); + // auto-fill (not auto-fit) keeps empty tracks reserved, so a single result + // stays card-width instead of stretching to fill the whole row. + grid-template-columns: repeat(auto-fill, minmax(var(--card-min-width), 1fr)); padding: 0 1rem; }