Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
feat(inspector): free rows, and five speed presets
EtienneLescot6463f5ec87a2
diff --git a/src/components/ai-edition/NewEditorShell.module.css b/src/components/ai-edition/NewEditorShell.module.cssindex 2853b9957..5a074d05b 100644--- a/src/components/ai-edition/NewEditorShell.module.css+++ b/src/components/ai-edition/NewEditorShell.module.css@@ -862,17 +862,15 @@.paneSection.isActive { display: block; }/* ─── pane rows (label + control) ─────────────────────────────── */-/* A soft fill, not a hairline box on the sunken --bg: the card reads as a surface. */+/* Free rows, the way Screen Studio sets its settings: label and control on one line, flush with+ the section labels, grouped by those labels and by space rather than each boxed in a card. */.paneRow {display: flex;align-items: center;justify-content: space-between;gap: 12px;- padding: 12px 14px;+ padding: 12px 0;margin: 8px var(--sp-4);- border: 0;- border-radius: 12px;- background: color-mix(in oklab, var(--fg) 5%, transparent);}.paneRow .label { font: 500 var(--fs-app) var(--font-body); color: var(--fg-2); }.paneRow .info {@@ -1274,11 +1272,9 @@ textarea.control {gap: 8px;padding: 0 var(--sp-4) var(--sp-4);}+/* A free row too, like .paneRow: no card around the label, value and track. */.sliderCell {- border: 0;- border-radius: 12px;- background: color-mix(in oklab, var(--fg) 5%, transparent);- padding: 12px 14px;+ padding: 12px 0;display: grid;grid-template-rows: auto auto;gap: 10px;diff --git a/src/components/ai-edition/v4/FloatingInspector.tsx b/src/components/ai-edition/v4/FloatingInspector.tsxindex 545bd10b9..949e307d0 100644--- a/src/components/ai-edition/v4/FloatingInspector.tsx+++ b/src/components/ai-edition/v4/FloatingInspector.tsx@@ -35,7 +35,6 @@ import {MAX_PLAYBACK_SPEED,MOVING_ROTATION_3D_PRESETS,type Rotation3DPreset,- SPEED_OPTIONS,ZOOM_DEPTH_SCALES,} from "@/components/video-editor/types";import { useScopedT } from "@/contexts/I18nContext";@@ -430,10 +429,10 @@ function convertAnnotationKind(}const ZOOM_DEPTHS = [1, 2, 3, 4, 5, 6] as const;-// The ladder the shared editor already ships (`SPEED_OPTIONS`), plus 1× so the select can-// express "back to normal". It stops at 5×; the free field in `SpeedControl` is what reaches-// `MAX_PLAYBACK_SPEED`.-const SPEED_PRESETS = [1, ...SPEED_OPTIONS.map((option) => option.speed)].sort((a, b) => a - b);+// The speeds people actually reach for, one row of buttons: slow down, back to normal, and three+// steps up. Every other speed (the shared ladder's 0.25×, 3×, 5×, anything up to+// `MAX_PLAYBACK_SPEED`) is one entry in the free field below, which is why the row stays short.+const SPEED_PRESETS = [0.5, 1, 1.5, 2, 4];/*** Preset select + free numeric field, the speed UX this editor already had translations for@@ -470,13 +469,12 @@ export function SpeedControl({return (<>- {/* The presets as buttons, six to a row like the zoom levels. A custom speed presses- none of them; the field below shows it as its placeholder. */}+ {/* A speed outside the row presses no button; the field below shows it as its+ placeholder. */}{paneStack(ts("speed.playbackSpeed"),<ChoiceRow<number>label={ts("speed.playbackSpeed")}- columns={6}options={SPEED_PRESETS.map((speed) => ({ value: speed, label: `${speed}×` }))}value={region.speed}onChange={(speed) => void tl.updateSpeedValue(region.id, speed)}