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(editor): a wider inspector when the stage has room
EtienneLescotf718b1a204d9
diff --git a/src/components/ai-edition/NewEditorShell.tsx b/src/components/ai-edition/NewEditorShell.tsxindex 2f0bb11a1..85145645d 100644--- a/src/components/ai-edition/NewEditorShell.tsx+++ b/src/components/ai-edition/NewEditorShell.tsx@@ -1600,9 +1600,10 @@ export function NewEditorShell() {// design lets the translucent panel float over the video, but the// preview is now a plain in-DOM <canvas> (no OS window/airspace// issue) — still reserve the inspector's real footprint (right:20 +- // rail:50 + gap:10 + panel:300 ≈ 380, +a small gap) so it doesn't- // draw its own translucent panel flush against the canvas edge.- padding: `16px ${inspectorOpen ? 400 : 74}px 16px 16px`,+ // rail:50 + gap:10 + panel ≈ 80 + panel, +a small gap) so it doesn't+ // draw its own translucent panel flush against the canvas edge. The+ // panel's width is `--inspector-w` (see .stage), so the room follows it.+ padding: `16px ${inspectorOpen ? "calc(var(--inspector-w, 300px) + 100px)" : "74px"} 16px 16px`,boxSizing: "border-box",}}>diff --git a/src/components/ai-edition/v4/EditorShellV4.module.css b/src/components/ai-edition/v4/EditorShellV4.module.cssindex 946fcf07a..3f41f2c65 100644--- a/src/components/ai-edition/v4/EditorShellV4.module.css+++ b/src/components/ai-edition/v4/EditorShellV4.module.css@@ -546,6 +546,10 @@min-width: 0;min-height: 0;overflow: hidden;+ /* The inspector takes a little more of a wide stage and never less than 300px, which is what+ its rows are laid out for. One value for the panel and for the room the preview leaves it. */+ container-type: inline-size;+ --inspector-w: clamp(300px, 22cqw, 380px);background: radial-gradient(ellipse 68% 54% at 52% 32%, var(--surface-1) 0%, var(--bg) 66%);}@@ -566,7 +570,7 @@}.inspector {pointer-events: auto;- width: 300px;+ width: var(--inspector-w, 300px);max-height: 100%;display: flex;flex-direction: column;