Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

feat(ui): taller lanes, so frames and waveforms have room

Jareer6ded8b1cb29b
diff --git a/src/crates/concat/src/studio.rs b/src/crates/concat/src/studio.rs
index aa539133..f8ffb329 100644
--- a/src/crates/concat/src/studio.rs
+++ b/src/crates/concat/src/studio.rs
@@ -79,10 +79,13 @@ pub const MIN_DURATION: f32 = 1.0 / 60.0;
///
/// Picture gets the tallest because a filmstrip is the one thing that needs
/// the room; sound the middle, where an envelope still has shape. The ladder
-/// is what `TrackSize::Auto` picks from - see `lane_height`.
-const LANE_LARGE: f32 = 80.0;
-const LANE_MEDIUM: f32 = 60.0;
-const LANE_SMALL: f32 = 40.0;
+/// is what `TrackSize::Auto` picks from - see `lane_height`. Raised from
+/// 80/60/40: with the name strip and the sound band taken off, a video's
+/// frames had under forty pixels and a waveform under thirty, and both
+/// read as crammed.
+const LANE_LARGE: f32 = 108.0;
+const LANE_MEDIUM: f32 = 80.0;
+const LANE_SMALL: f32 = 44.0;
/// How long a title runs when it is placed: long enough to read, short
/// enough that trimming it is a nudge rather than a fight.
diff --git a/src/crates/concat/ui/timeline/lanes.slint b/src/crates/concat/ui/timeline/lanes.slint
index dcc6fcc1..de539b18 100644
--- a/src/crates/concat/ui/timeline/lanes.slint
+++ b/src/crates/concat/ui/timeline/lanes.slint
@@ -160,7 +160,7 @@ component Clip inherits Rectangle {
/// never spoke. https://github.com/jub0t/Concat/issues/137
property <bool> banded: root.item.kind == ClipKind.video;
property <length> band-h: root.banded
- ? Math.clamp(root.body-h * 0.34, 8px, 24px)
+ ? Math.clamp(root.body-h * 0.34, 8px, 30px)
: 0px;
/// What the frames get: the body less the band.
property <length> frames-h: Math.max(0px, root.body-h - root.band-h);