fix(web): render Sinopsis section only when valid LLM synopsis text exists

This commit is contained in:
Renato
2026-07-24 02:55:56 +02:00
parent 72e503d7bc
commit 571b6d1a7c
+8 -1
View File
@@ -34,6 +34,13 @@ export default async function PostDetailPage({
? `https://e-hentai.org/g/${post.gid}/`
: null)
const isRealSynopsis = Boolean(
post.summary &&
!post.summary.startsWith("**") &&
!post.summary.startsWith("Fuente:") &&
post.summary.length > 50
)
return (
<div className="pb-16 md:pb-0">
<Link
@@ -86,7 +93,7 @@ export default async function PostDetailPage({
)}
</div>
{post.summary && (
{isRealSynopsis && (
<div className="text-xs sm:text-sm text-[var(--muted)] leading-relaxed whitespace-pre-line bg-[var(--surface)]/50 p-3 sm:p-4 rounded-lg border border-[var(--border)]">
<h3 className="text-[10px] sm:text-xs font-semibold text-[var(--foreground)] uppercase tracking-wider mb-1.5">Sinopsis</h3>
{post.summary}