From 19f3948f48ebe28ce94b5fe824b0a236b3986ee1 Mon Sep 17 00:00:00 2001 From: Peter Meier Date: Sat, 16 May 2026 14:54:36 +0200 Subject: [PATCH] feat(carousel): 2 cols tablet, 3 cols desktop; equal-height cards - PostOverviewBlock carousel: md:2 cols, lg:3 cols via snap-scroll - PostCard: add class prop for external styling - Carousel cards: h-full for equal height Co-Authored-By: Claude Sonnet 4.6 --- src/lib/components/PostCard.svelte | 4 +- .../blocks/PostOverviewBlock.svelte | 56 +++++++++++++++---- 2 files changed, 48 insertions(+), 12 deletions(-) diff --git a/src/lib/components/PostCard.svelte b/src/lib/components/PostCard.svelte index a5f5548..78fef6e 100644 --- a/src/lib/components/PostCard.svelte +++ b/src/lib/components/PostCard.svelte @@ -22,12 +22,14 @@ href, tagBase = "/posts/tag", commentCount = null, + class: className = "", }: { post: PostWithImage; href: string; tagBase?: string; /** Approved comment count. `null` = unknown/loading, hide badge. `0` = also hide. */ commentCount?: number | null; + class?: string; } = $props(); const rawImg = $derived(post._rawImageUrl); @@ -52,7 +54,7 @@
{#if rawImg} diff --git a/src/lib/components/blocks/PostOverviewBlock.svelte b/src/lib/components/blocks/PostOverviewBlock.svelte index 21e61cd..a0797de 100644 --- a/src/lib/components/blocks/PostOverviewBlock.svelte +++ b/src/lib/components/blocks/PostOverviewBlock.svelte @@ -1,7 +1,8 @@