fix: show full AI summary and decode HTML entities

Remove CSS line-clamp that was truncating summaries to 3 lines (2 on
mobile). The AI summary is 4 sentences and should be displayed in full.
Also add decodeEntities() to clean up   and ' artifacts in
titles and summaries returned by the REST API.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Terence Ong
2026-04-07 14:22:17 +07:00
parent c89947615a
commit 8b14e9e8cd
2 changed files with 15 additions and 7 deletions

View File

@@ -98,10 +98,6 @@
line-height: 1.65;
color: #4b5563;
margin: 0 0 0.625rem;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* ── Author ────────────────────────────────────────────────────── */
@@ -305,7 +301,6 @@
.pn-article-excerpt {
font-size: 0.875rem;
-webkit-line-clamp: 2;
}
.pn-pagination {