Skip to content

🎥 Make videos programmatically with React

Use render output width for video matting

JonnyBurgeraf61778be440
diff --git a/packages/studio/src/components/RenderModal/RenderModalBasic.tsx b/packages/studio/src/components/RenderModal/RenderModalBasic.tsx
index b10b0c8dd1..d83a5c82c8 100644
--- a/packages/studio/src/components/RenderModal/RenderModalBasic.tsx
+++ b/packages/studio/src/components/RenderModal/RenderModalBasic.tsx
@@ -227,7 +227,6 @@ export const RenderModalBasic: React.FC<{
ariaLabel={null}
existingOutputPath={null}
existence={existence}
- inputContainerStyle={null}
inputStyle={input}
outName={outName}
onValueChange={onValueChange}
diff --git a/packages/studio/src/components/RenderModal/RenderModalOutputName.tsx b/packages/studio/src/components/RenderModal/RenderModalOutputName.tsx
index 40d51b1545..09dedcc04b 100644
--- a/packages/studio/src/components/RenderModal/RenderModalOutputName.tsx
+++ b/packages/studio/src/components/RenderModal/RenderModalOutputName.tsx
@@ -44,7 +44,6 @@ type Props = {
readonly ariaLabel: string | null;
readonly existingOutputPath: string | null;
readonly existence: boolean;
- readonly inputContainerStyle: React.CSSProperties | null;
readonly inputStyle: React.CSSProperties;
readonly outName: string;
readonly onValueChange: React.ChangeEventHandler<HTMLInputElement>;
@@ -56,7 +55,6 @@ export const RenderModalOutputName = ({
ariaLabel,
existingOutputPath,
existence,
- inputContainerStyle,
inputStyle,
outName,
onValueChange,
@@ -86,7 +84,7 @@ export const RenderModalOutputName = ({
<div style={label}>{labelText}</div>
</Column>
<div style={rightRow}>
- <div style={{...outputNameInputContainer, ...inputContainerStyle}}>
+ <div style={outputNameInputContainer}>
<RemotionInput
aria-label={ariaLabel ?? undefined}
status={validationMessage ? 'error' : existence ? 'warning' : 'ok'}
diff --git a/packages/studio/src/components/RenderModal/SeparateAudioOption.tsx b/packages/studio/src/components/RenderModal/SeparateAudioOption.tsx
index 805f2f254f..05322faed4 100644
--- a/packages/studio/src/components/RenderModal/SeparateAudioOption.tsx
+++ b/packages/studio/src/components/RenderModal/SeparateAudioOption.tsx
@@ -42,7 +42,6 @@ export const SeparateAudioOptionInput: React.FC<{
ariaLabel={null}
existingOutputPath={null}
existence={existence}
- inputContainerStyle={null}
inputStyle={input}
onValueChange={onValueChange}
outName={separateAudioTo}
diff --git a/packages/studio/src/components/RenderModal/WebRenderModalBasic.tsx b/packages/studio/src/components/RenderModal/WebRenderModalBasic.tsx
index 316efbe119..12da433f65 100644
--- a/packages/studio/src/components/RenderModal/WebRenderModalBasic.tsx
+++ b/packages/studio/src/components/RenderModal/WebRenderModalBasic.tsx
@@ -252,7 +252,6 @@ export const WebRenderModalBasic: React.FC<WebRenderModalBasicProps> = ({
ariaLabel={null}
existingOutputPath={null}
existence={false}
- inputContainerStyle={null}
inputStyle={input}
outName={outName}
onValueChange={onOutNameChange}
diff --git a/packages/studio/src/components/VideoMatting/VideoMattingModal.tsx b/packages/studio/src/components/VideoMatting/VideoMattingModal.tsx
index 86333d2d21..9006e0ccf2 100644
--- a/packages/studio/src/components/VideoMatting/VideoMattingModal.tsx
+++ b/packages/studio/src/components/VideoMatting/VideoMattingModal.tsx
@@ -75,7 +75,6 @@ const modalLayout: React.CSSProperties = {
};
const hiddenPanel: React.CSSProperties = {display: 'none'};
const validationStyle: React.CSSProperties = {padding: '0 16px 8px'};
-const outputInputContainerStyle: React.CSSProperties = {maxWidth: 330};
type SupportState =
| {type: 'checking'}
@@ -324,8 +323,7 @@ export const VideoMattingModal: React.FC<VideoMattingModalState> = ({
: null
}
existence={baseExists}
- inputContainerStyle={outputInputContainerStyle}
- inputStyle={{...input, ...controlStyle}}
+ inputStyle={input}
label="Base output in public/"
onValueChange={(event) => setBaseOutName(event.target.value)}
outName={baseOutName}
@@ -339,8 +337,7 @@ export const VideoMattingModal: React.FC<VideoMattingModalState> = ({
: null
}
existence={foregroundExists}
- inputContainerStyle={outputInputContainerStyle}
- inputStyle={{...input, ...controlStyle}}
+ inputStyle={input}
label="Foreground output in public/"
onValueChange={(event) =>
setForegroundOutName(event.target.value)