Apply lesson cover as poster for embedded kinescopeVideo nodes

This commit is contained in:
2026-05-26 16:40:47 +05:00
parent 5e5f616888
commit d9e3531c49
247 changed files with 21465 additions and 11 deletions
@@ -122,9 +122,6 @@ export default async function LessonPage({ params }: Props) {
{/* Title */}
<h1 className="text-2xl font-bold mb-6 leading-snug">{lesson.title}</h1>
{/* DEBUG: remove after fix */}
<div style={{background:"red",color:"white",padding:"4px 8px",fontSize:12,marginBottom:8}}>DEBUG lessonId: {lessonId} | kinescopeId: {String(lesson.kinescopeId ?? "NULL")} | coverImage: {String(lesson.coverImage ?? "NULL")} | isAdmin: {String(isAdmin)}</div>
{/* Video */}
{lesson.kinescopeId && (
<div className="mb-8">
@@ -135,7 +132,7 @@ export default async function LessonPage({ params }: Props) {
{/* Text content */}
{hasContent && (
<div className="mb-8">
<LessonContent content={lesson.content as object} />
<LessonContent content={lesson.content as object} coverImage={lesson.coverImage} />
</div>
)}