diff --git a/src/view/com/composer/videos/SubtitleDialog.tsx b/src/view/com/composer/videos/SubtitleDialog.tsx index 00908745..10c2d756 100644 --- a/src/view/com/composer/videos/SubtitleDialog.tsx +++ b/src/view/com/composer/videos/SubtitleDialog.tsx @@ -20,6 +20,8 @@ import {Warning_Stroke2_Corner0_Rounded as WarningIcon} from '#/components/icons import {Text} from '#/components/Typography' import {SubtitleFilePicker} from './SubtitleFilePicker' +const MAX_NUM_CAPTIONS = 1 + interface Props { defaultAltText: string captions: {lang: string; file: File}[] @@ -134,7 +136,9 @@ function SubtitleDialogInner({ = 4} + disabled={ + subtitleMissingLanguage || captions.length >= MAX_NUM_CAPTIONS + } /> {captions.map((subtitle, i) => (