Skip to content

🎥 Make videos programmatically with React

idling icon

Jonny Burgerb43ec1f6c54f
diff --git a/packages/cli/src/editor/components/RenderQueue/RenderQueueItemStatus.tsx b/packages/cli/src/editor/components/RenderQueue/RenderQueueItemStatus.tsx
index 7f41cb4cc4..35e9f0c079 100644
--- a/packages/cli/src/editor/components/RenderQueue/RenderQueueItemStatus.tsx
+++ b/packages/cli/src/editor/components/RenderQueue/RenderQueueItemStatus.tsx
@@ -1,6 +1,6 @@
import React from 'react';
import type {RenderJob} from '../../../preview-server/render-queue/job';
-import {FAIL_COLOR} from '../../helpers/colors';
+import {FAIL_COLOR, LIGHT_TEXT} from '../../helpers/colors';
const iconStyle: React.CSSProperties = {
height: 16,
@@ -13,11 +13,7 @@ export const RenderQueueItemStatus: React.FC<{
if (job.status === 'failed') {
return (
<div>
- <svg
- style={iconStyle}
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 512 512"
- >
+ <svg style={iconStyle} viewBox="0 0 512 512">
<path
fill={FAIL_COLOR}
d="M0 160V352L160 512H352L512 352V160L352 0H160L0 160zm353.9 32l-17 17-47 47 47 47 17 17L320 353.9l-17-17-47-47-47 47-17 17L158.1 320l17-17 47-47-47-47-17-17L192 158.1l17 17 47 47 47-47 17-17L353.9 192z"
@@ -27,5 +23,16 @@ export const RenderQueueItemStatus: React.FC<{
);
}
+ if (job.status === 'idle') {
+ return (
+ <svg style={iconStyle} viewBox="0 0 512 512">
+ <path
+ fill={LIGHT_TEXT}
+ d="M256 512C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256s-114.6 256-256 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"
+ />
+ </svg>
+ );
+ }
+
return <div>{job.status}</div>;
};
diff --git a/packages/cli/src/editor/components/Tabs/index.tsx b/packages/cli/src/editor/components/Tabs/index.tsx
index 5f9cfc48b9..1d6c06e18d 100644
--- a/packages/cli/src/editor/components/Tabs/index.tsx
+++ b/packages/cli/src/editor/components/Tabs/index.tsx
@@ -62,7 +62,6 @@ export const Tab: React.FC<{
return (
<button
- className="no-focus-ring"
style={definiteStyle}
type="button"
onClick={onClick}