fix(web): render Sinopsis section only when valid LLM synopsis text exists
This commit is contained in:
@@ -34,6 +34,13 @@ export default async function PostDetailPage({
|
|||||||
? `https://e-hentai.org/g/${post.gid}/`
|
? `https://e-hentai.org/g/${post.gid}/`
|
||||||
: null)
|
: null)
|
||||||
|
|
||||||
|
const isRealSynopsis = Boolean(
|
||||||
|
post.summary &&
|
||||||
|
!post.summary.startsWith("**") &&
|
||||||
|
!post.summary.startsWith("Fuente:") &&
|
||||||
|
post.summary.length > 50
|
||||||
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="pb-16 md:pb-0">
|
<div className="pb-16 md:pb-0">
|
||||||
<Link
|
<Link
|
||||||
@@ -86,7 +93,7 @@ export default async function PostDetailPage({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</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)]">
|
<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>
|
<h3 className="text-[10px] sm:text-xs font-semibold text-[var(--foreground)] uppercase tracking-wider mb-1.5">Sinopsis</h3>
|
||||||
{post.summary}
|
{post.summary}
|
||||||
|
|||||||
Reference in New Issue
Block a user