feat(web): summary preview under each list card

Render a muted one-line lede beneath the title/meta of each summary
card via previewText(r.Summary, 160). New .card-preview token clamps to
one line. Regenerated views_templ.go committed (CI has no templ binary).
This commit is contained in:
2026-06-03 15:11:42 +02:00
parent 23fa5427b7
commit 8210f927ee
3 changed files with 181 additions and 158 deletions
+3
View File
@@ -75,6 +75,9 @@ templ summaryList(rows []store.SummaryRow) {
if cardMeta(r) != "" {
<div class="card-meta">{ cardMeta(r) }</div>
}
if p := previewText(r.Summary, 160); p != "" {
<div class="card-preview">{ p }</div>
}
<div class="card-foot">
if r.AIProvider != "" {
<span class="chip">{ r.AIProvider }</span>