diff --git a/frontend/src/lib/components/ArticleCard.svelte b/frontend/src/lib/components/ArticleCard.svelte index 9566935..9957243 100644 --- a/frontend/src/lib/components/ArticleCard.svelte +++ b/frontend/src/lib/components/ArticleCard.svelte @@ -37,7 +37,7 @@
{article.description}
{/if} @@ -88,6 +88,16 @@ margin: 2px 0 0; font-style: italic; color: var(--muted); font-size: 0.9rem; padding-left: 12px; border-left: 2px solid var(--sage-soft); } + /* Keep card heights even: clamp variable-length text on lane/grid cards. */ + article:not(.hero):not(.herotype) h3, + .why { + display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; + -webkit-line-clamp: 3; + } + .hero .desc, .herotype .desc { + display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; + -webkit-line-clamp: 6; + } .actions { margin-top: auto; padding-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; } .actions button { background: none; border: none; padding: 0; color: var(--muted);