修复生成视频前草图模糊

This commit is contained in:
北枳 2025-07-07 23:06:40 +08:00
parent c9fdf8b55a
commit 07d2d8fbf7
2 changed files with 4 additions and 1 deletions

View File

@ -257,6 +257,7 @@ export default function WorkFlow() {
<ErrorBoundary> <ErrorBoundary>
<ThumbnailGrid <ThumbnailGrid
isLoading={isLoading} isLoading={isLoading}
isPlaying={isPlaying}
currentStep={currentStep} currentStep={currentStep}
currentSketchIndex={currentSketchIndex} currentSketchIndex={currentSketchIndex}
taskSketch={taskSketch} taskSketch={taskSketch}

View File

@ -7,6 +7,7 @@ import { ProgressiveReveal, presets } from '@/components/ui/progressive-reveal';
interface ThumbnailGridProps { interface ThumbnailGridProps {
isLoading: boolean; isLoading: boolean;
isPlaying: boolean;
currentStep: string; currentStep: string;
currentSketchIndex: number; currentSketchIndex: number;
taskSketch: any[]; taskSketch: any[];
@ -20,6 +21,7 @@ interface ThumbnailGridProps {
export function ThumbnailGrid({ export function ThumbnailGrid({
isLoading, isLoading,
isPlaying,
currentStep, currentStep,
currentSketchIndex, currentSketchIndex,
taskSketch, taskSketch,
@ -183,7 +185,7 @@ export function ThumbnailGrid({
<div className="w-full h-full transform hover:scale-105 transition-transform duration-500"> <div className="w-full h-full transform hover:scale-105 transition-transform duration-500">
<img <img
className={`w-full h-full object-cover transition-all duration-300 ${ className={`w-full h-full object-cover transition-all duration-300 ${
!taskVideos[index] ? 'filter blur-sm opacity-60' : '' (!taskVideos[index] && !isPlaying) ? 'filter blur-sm opacity-60' : ''
}`} }`}
src={sketch.url} src={sketch.url}
alt={`Thumbnail ${index + 1}`} alt={`Thumbnail ${index + 1}`}