🎥 Make videos programmatically with React
mayPad
Jonny Burger810a579b8755
diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/SchemaLabel.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/SchemaLabel.tsxindex 1c22240821..78ec4616c5 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/SchemaLabel.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/SchemaLabel.tsx@@ -30,6 +30,7 @@ const labelStyle: React.CSSProperties = {fontFamily: 'monospace',fontSize: 14,color: LIGHT_TEXT,+ lineHeight: '24px',};export const SchemaLabel: React.FC<{diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.tsxindex b4960c9f53..ebe4e98aa7 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.tsx@@ -24,6 +24,8 @@ const stackTraceLabel: React.CSSProperties = {const legend: React.CSSProperties = {display: 'flex',+ flexDirection: 'row',+ alignItems: 'center',};export const ZodEffectEditor: React.FC<{@@ -67,7 +69,7 @@ export const ZodEffectEditor: React.FC<{}return (- <Fieldset shouldPad={false} success={localValue.zodValidation.success}>+ <Fieldset shouldPad success={localValue.zodValidation.success}><div style={fullWidth}><ZodSwitchvalue={value}@@ -85,7 +87,7 @@ export const ZodEffectEditor: React.FC<{/></div>{!localValue.zodValidation.success && (- <legend style={legend}>+ <div style={legend}><ValidationMessagealign="flex-start"message={localValue.zodValidation.error.format()._errors[0]}@@ -105,7 +107,7 @@ export const ZodEffectEditor: React.FC<{</div></InfoBubble><Spacing x={0.5} />- </legend>+ </div>)}</Fieldset>);diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.tsxindex 7633ab33e4..7c65fb46fd 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.tsx@@ -3,11 +3,11 @@ import type {z} from 'zod';import {Spacing} from '../../layout';import {InputDragger} from '../../NewComposition/InputDragger';import {ValidationMessage} from '../../NewComposition/ValidationMessage';-import {narrowOption, optionRow} from '../layout';import {useLocalState} from './local-state';import {SchemaLabel} from './SchemaLabel';import type {JSONPath} from './zod-types';import type {UpdaterFunction} from './ZodSwitch';+import {Fieldset} from './Fieldset';const fullWidth: React.CSSProperties = {width: '100%',@@ -79,6 +79,7 @@ export const ZodNumberEditor: React.FC<{showSaveButton: boolean;saving: boolean;saveDisabledByParent: boolean;+ mayPad: boolean;}> = ({jsonPath,value,@@ -91,6 +92,7 @@ export const ZodNumberEditor: React.FC<{showSaveButton,saving,saveDisabledByParent,+ mayPad,}) => {const {localValue, onChange: setLocalValue} = useLocalState({value,@@ -123,7 +125,7 @@ export const ZodNumberEditor: React.FC<{}, [onSave, value]);return (- <div style={compact ? narrowOption : optionRow}>+ <Fieldset shouldPad={mayPad} success={localValue.zodValidation.success}><SchemaLabelisDefaultValue={isDefault}jsonPath={jsonPath}@@ -161,6 +163,6 @@ export const ZodNumberEditor: React.FC<{</>)}</div>- </div>+ </Fieldset>);};diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsxindex 682f6336af..dd163d9fe0 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsx@@ -155,6 +155,7 @@ export const ZodSwitch: React.FC<{onRemove={onRemove}saving={saving}saveDisabledByParent={saveDisabledByParent}+ mayPad={mayPad}/>);}