Skip to content

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

feat(ui): air above and below the library's page chips

Jareer65c1ffd66135
diff --git a/src/crates/concat/ui/workspace/config-pane.slint b/src/crates/concat/ui/workspace/config-pane.slint
index c225a63e..e853214d 100644
--- a/src/crates/concat/ui/workspace/config-pane.slint
+++ b/src/crates/concat/ui/workspace/config-pane.slint
@@ -291,8 +291,8 @@ export component ConfigPane inherits Rectangle {
Pane {
// ── details ──────────────────────────────────────────────────────
if !root.has-selection: Rectangle {
- // The same 44px as the panes either side of it; see PaneHeader.
- height: 44px;
+ // The same 52px as the panes either side of it; see PaneHeader.
+ height: 52px;
Rectangle {
x: 0;
@@ -416,7 +416,7 @@ export component ConfigPane inherits Rectangle {
if root.has-selection: Rectangle {
// Matched to the Details bar above, or the top of the column
// would jump by four pixels every time a clip was selected.
- height: 44px;
+ height: 52px;
Rectangle {
x: 0;
diff --git a/src/crates/concat/ui/workspace/media-pane.slint b/src/crates/concat/ui/workspace/media-pane.slint
index 29f06082..a79828e4 100644
--- a/src/crates/concat/ui/workspace/media-pane.slint
+++ b/src/crates/concat/ui/workspace/media-pane.slint
@@ -98,13 +98,14 @@ component LibraryTab inherits Rectangle {
animate tint { duration: 140ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
- // Two lines in the 32px a chip gets inside the strip: 13px of mark, 2px of
- // air, then the label at fs-sm. The strip stays at 44px so the three pane
- // headers keep one edge across the window (see PaneHeader), which is why
- // the numbers are this tight and not looser.
+ // Two lines in the 40px a chip gets inside the strip: 13px of mark, 2px of
+ // air, then the label at fs-sm, with 6px above and below so the two
+ // lines sit in the chip rather than against its edges. The strip is 52px
+ // so the three pane headers keep one edge across the window (see
+ // PaneHeader).
VerticalLayout {
- padding-top: 2px;
- padding-bottom: 2px;
+ padding-top: 6px;
+ padding-bottom: 6px;
padding-left: 6px;
padding-right: 6px;
spacing: 2px;
@@ -1462,7 +1463,7 @@ export component MediaPane inherits Rectangle {
// which is why the hairline is a child of this row and not a border on
// the pill below it.
Rectangle {
- height: 44px;
+ height: 52px;
Rectangle {
y: parent.height - 1px;
@@ -1472,9 +1473,9 @@ export component MediaPane inherits Rectangle {
HorizontalLayout {
// 4px above and below, not the 8px at the sides: the chips
- // carry a mark over their label now, and those two lines need
- // the room within the 44px the strip shares with the other
- // panes' headers.
+ // carry a mark over their label and their own air around
+ // both, and those need the room within the 52px the strip
+ // shares with the other panes' headers.
padding-top: 4px;
padding-bottom: 4px;
padding-left: 8px;
diff --git a/src/crates/concat/ui/workspace/pane.slint b/src/crates/concat/ui/workspace/pane.slint
index 1ff60e8f..570089c3 100644
--- a/src/crates/concat/ui/workspace/pane.slint
+++ b/src/crates/concat/ui/workspace/pane.slint
@@ -38,13 +38,13 @@ export component Pane inherits Rectangle {
export component PaneHeader inherits Rectangle {
in property <string> title;
- // 44px, which is the library pane's tab strip — the tallest of the three
+ // 52px, which is the library pane's tab strip — the tallest of the three
// top bars, because that one has a row of chips in it and the other two
// have a line of text. One height across all three is worth more than
// each pane's own minimum: the three panes sit side by side, and a header
// that steps down twice across the top of the window reads as three
// panels bolted together rather than as one shell.
- height: 44px;
+ height: 52px;
// Hairline on the bottom edge rather than a border on the body, so the
// line runs the full width of the pane and not the width of the content.