Skip to content

🎥 Make videos programmatically with React

schema

Jonny Burger3040b86a2b45
diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/SchemaSeparationLine.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/SchemaSeparationLine.tsx
index 84750a5a5c..6d4fe11574 100644
--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/SchemaSeparationLine.tsx
+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/SchemaSeparationLine.tsx
@@ -1,6 +1,6 @@
import React, {useCallback, useMemo, useState} from 'react';
import type {z} from 'zod';
-import {BACKGROUND, LIGHT_TEXT} from '../../../helpers/colors';
+import {BACKGROUND, LIGHT_TEXT, LINE_COLOR} from '../../../helpers/colors';
import {Plus} from '../../../icons/plus';
import {
useZodIfPossible,
@@ -13,7 +13,7 @@ import {createZodValues} from './create-zod-values';
export const VERTICAL_GUIDE_HEIGHT = 24;
const line: React.CSSProperties = {
- borderBottom: '1px solid rgba(255, 255, 255, 0.1)',
+ borderBottom: '1px solid ' + LINE_COLOR,
};
export const SchemaSeparationLine: React.FC = () => {
@@ -21,7 +21,7 @@ export const SchemaSeparationLine: React.FC = () => {
};
const arraySeparationLine: React.CSSProperties = {
- borderBottom: '1px solid rgba(255, 255, 255, 0.1)',
+ borderBottom: '1px solid ' + LINE_COLOR,
marginTop: -VERTICAL_GUIDE_HEIGHT / 2,
pointerEvents: 'none',
width: '100%',
diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/SchemaVerticalGuide.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/SchemaVerticalGuide.tsx
index e01a6652f7..d2f3aa1dc9 100644
--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/SchemaVerticalGuide.tsx
+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/SchemaVerticalGuide.tsx
@@ -22,7 +22,7 @@ export const SchemaVerticalGuide: React.FC<{
return isRoot
? {}
: {
- height: `calc(100% - ${VERTICAL_GUIDE_HEIGHT}px)`,
+ height: `calc(100% - ${VERTICAL_GUIDE_HEIGHT / 2}px)`,
width: 1,
background: '#363A3E',
position: 'absolute',
diff --git a/packages/cli/src/editor/helpers/colors.ts b/packages/cli/src/editor/helpers/colors.ts
index ac800b949a..30b7c3e0ea 100644
--- a/packages/cli/src/editor/helpers/colors.ts
+++ b/packages/cli/src/editor/helpers/colors.ts
@@ -19,6 +19,7 @@ export const BLUE_DISABLED = '#284f73';
export const LIGHT_TRANSPARENT = 'rgba(255, 255, 255, 0.7)';
export const UNSELECTED_GUIDE = '#7e1219';
export const SELECTED_GUIDE = '#d22d3a';
+export const LINE_COLOR = '#363A3E';
export const getBackgroundFromHoverState = ({
selected,