Skip to content

🎥 Make videos programmatically with React

scale always decimal

Patric Salvisbergaa2a5bf90b60
diff --git a/packages/cli/src/editor/components/RenderModal/ScaleSetting.tsx b/packages/cli/src/editor/components/RenderModal/ScaleSetting.tsx
index f5af4fe33c..36efe363b2 100644
--- a/packages/cli/src/editor/components/RenderModal/ScaleSetting.tsx
+++ b/packages/cli/src/editor/components/RenderModal/ScaleSetting.tsx
@@ -9,13 +9,18 @@ export const ScaleSetting: React.FC<{
setScale: (value: React.SetStateAction<number>) => void;
}> = ({scale, setScale}) => {
return (
- // TODO: Always show 1 decimal
<NumberSetting
min={MIN_SCALE}
max={MAX_SCALE}
step={0.1}
name="Scale"
- formatter={(w) => `${w}x`}
+ formatter={(w) => {
+ if (typeof w === 'number') {
+ return `${w.toFixed(1)}x`;
+ }
+
+ return `${w}x`;
+ }}
onValueChanged={setScale}
value={scale}
hint={BrowserSafeApis.options.scaleOption}
diff --git a/packages/renderer/src/options/enforce-audio.tsx b/packages/renderer/src/options/enforce-audio.tsx
index bbe41d1ab9..6724568e60 100644
--- a/packages/renderer/src/options/enforce-audio.tsx
+++ b/packages/renderer/src/options/enforce-audio.tsx
@@ -1,6 +1,5 @@
import type {RemotionOption} from './option';
-// TODO: add ssrName
export const enforceAudioOption: RemotionOption = {
name: 'Enforce Audio Track',
cliFlag: '--enforce-audio-track',