🎥 Make videos programmatically with React
add a minimum progress to avoid progress bar from disappearing
Jonny Burger2a088fe5fc2d
diff --git a/packages/cli/src/editor/components/RenderQueue/RenderQueueItem.tsx b/packages/cli/src/editor/components/RenderQueue/RenderQueueItem.tsxindex ba2755e11f..5171063be6 100644--- a/packages/cli/src/editor/components/RenderQueue/RenderQueueItem.tsx+++ b/packages/cli/src/editor/components/RenderQueue/RenderQueueItem.tsx@@ -13,6 +13,7 @@ const container: React.CSSProperties = {display: 'flex',flexDirection: 'row',paddingBottom: 10,+ paddingRight: 4,};const title: React.CSSProperties = {diff --git a/packages/cli/src/editor/components/RenderQueue/RenderQueueItemStatus.tsx b/packages/cli/src/editor/components/RenderQueue/RenderQueueItemStatus.tsxindex 8a0908ee5f..ecf548ac9a 100644--- a/packages/cli/src/editor/components/RenderQueue/RenderQueueItemStatus.tsx+++ b/packages/cli/src/editor/components/RenderQueue/RenderQueueItemStatus.tsx@@ -50,7 +50,8 @@ export const RenderQueueItemStatus: React.FC<{}if (job.status === 'running') {- return <CircularProgress progress={job.progress} />;+ // Add a minimum progress to avoid the progress bar from disappearing+ return <CircularProgress progress={Math.max(0.07, job.progress)} />;}throw new Error('Unknown job status');diff --git a/packages/cli/src/preview-server/routes/subscribe-to-file-existence.ts b/packages/cli/src/preview-server/routes/subscribe-to-file-existence.tsindex 24c566e5e6..1d2e75e73d 100644--- a/packages/cli/src/preview-server/routes/subscribe-to-file-existence.ts+++ b/packages/cli/src/preview-server/routes/subscribe-to-file-existence.ts@@ -9,6 +9,7 @@ export const subscribeToFileExistence: ApiHandler<SubscribeToFileExistenceRequest,SubscribeToFileExistenceResponse> = ({input: {file}, remotionRoot}) => {+ // TODO: What if the user reloads the page? The file watcher doesn't get clearedconst {exists} = subscribeToFileExistenceWatchers({file,remotionRoot,