fix: make home video results playable
This commit is contained in:
@@ -530,8 +530,11 @@ export default function Home() {
|
||||
objectFit="cover"
|
||||
previewObjectFit="contain"
|
||||
className="aspect-video w-full rounded-xl"
|
||||
videoControls={latestVideo.status === "completed"}
|
||||
label={latestVideo.model}
|
||||
meta={`${latestVideo.status} · ${Math.round(latestVideo.progress)}%`}
|
||||
previewDetail={latestVideo.error || undefined}
|
||||
emptyText={latestVideo.status === "failed" ? "失败" : undefined}
|
||||
busy={latestVideo.status === "queued" || latestVideo.status === "in_progress"}
|
||||
onDelete={() => deleteVideo(latestVideo)}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user