Skip to content

🎥 Make videos programmatically with React

shortcut explainer scrollable

Patric Salvisbergbe647d6cfd0e
diff --git a/packages/cli/src/editor/components/QuickSwitcher/QuickSwitcherContent.tsx b/packages/cli/src/editor/components/QuickSwitcher/QuickSwitcherContent.tsx
index fc92818ca2..c616265ef1 100644
--- a/packages/cli/src/editor/components/QuickSwitcher/QuickSwitcherContent.tsx
+++ b/packages/cli/src/editor/components/QuickSwitcher/QuickSwitcherContent.tsx
@@ -341,6 +341,7 @@ export const QuickSwitcherContent: React.FC<{
if (showKeyboardShortcuts) {
return {
maxHeight: 600,
+ overflowY: 'scroll',
};
}
diff --git a/packages/cli/src/editor/components/RenderToolbarIcon.tsx b/packages/cli/src/editor/components/RenderToolbarIcon.tsx
index bcc7a9c414..556e8900e9 100644
--- a/packages/cli/src/editor/components/RenderToolbarIcon.tsx
+++ b/packages/cli/src/editor/components/RenderToolbarIcon.tsx
@@ -12,6 +12,7 @@ import {Internals, useCurrentFrame} from 'remotion';
import {getDefaultOutLocation} from '../../get-default-out-name';
import {getDefaultCodecs} from '../../preview-server/render-queue/get-default-video-contexts';
import {PreviewServerConnectionCtx} from '../helpers/client-id';
+import {areKeyboardShortcutsDisabled} from '../helpers/use-keybinding';
import {RenderIcon} from '../icons/render';
import {ModalsContext} from '../state/modals';
import {ControlButton} from './ControlButton';
@@ -27,9 +28,10 @@ export const RenderButton: React.FC = () => {
},
};
}, []);
+ const shortcut = areKeyboardShortcutsDisabled() ? '' : '(R)';
const tooltip =
type === 'connected'
- ? 'Export the current composition R'
+ ? 'Export the current composition ' + shortcut
: 'Connect to the preview server to render';
const video = Internals.useVideo();