Skip to content

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

fix(ui): the Export sheet stays inside a phone's bars, and New Project's sizes wrap (#353, #356)

Jareerc79c142b00c3
diff --git a/src/crates/concat/ui/app.slint b/src/crates/concat/ui/app.slint
index bbec6c28..551d1e88 100644
--- a/src/crates/concat/ui/app.slint
+++ b/src/crates/concat/ui/app.slint
@@ -710,6 +710,10 @@ export component App inherits Window {
}
ExportDialog {
+ inset-top: root.safe-area-insets.top;
+ inset-bottom: root.safe-area-insets.bottom;
+ inset-left: root.safe-area-insets.left;
+ inset-right: root.safe-area-insets.right;
x: 0;
y: 0;
width: root.width;
diff --git a/src/crates/concat/ui/dialogs/export.slint b/src/crates/concat/ui/dialogs/export.slint
index 0d2fe92a..a5997497 100644
--- a/src/crates/concat/ui/dialogs/export.slint
+++ b/src/crates/concat/ui/dialogs/export.slint
@@ -693,6 +693,13 @@ export component ExportDialog inherits Rectangle {
in property <ExportData> data;
/// A finger drives it: the body scrolls under a drag as well as a wheel.
in property <bool> phone;
+ /// How far the system's bars reach into the window (its
+ /// safe-area-insets; zero on a desk). The sheet's panel runs behind
+ /// them; its header, its body and its buttons stay inside (#353).
+ in property <length> inset-top;
+ in property <length> inset-bottom;
+ in property <length> inset-left;
+ in property <length> inset-right;
/// The monitor's frame and where the playhead is, for the preview
/// group; a scrub there seeks the cut.
in property <image> preview-frame;
@@ -748,6 +755,11 @@ export component ExportDialog inherits Rectangle {
TouchArea { }
VerticalLayout {
+ padding-top: root.inset-top;
+ padding-bottom: root.inset-bottom;
+ padding-left: root.inset-left;
+ padding-right: root.inset-right;
+
// ── the header ───────────────────────────────────────────────
Rectangle {
height: 52px;
diff --git a/src/crates/concat/ui/start.slint b/src/crates/concat/ui/start.slint
index 38267296..87774598 100644
--- a/src/crates/concat/ui/start.slint
+++ b/src/crates/concat/ui/start.slint
@@ -1378,6 +1378,11 @@ export component NewProjectDialog inherits Modal {
current: root.data.size;
enabled: !root.data.busy;
block: root.narrow;
+ // Five chips and the readout do not fit one line of
+ // a phone held upright: 4K and Custom ran off the
+ // edge out of reach (#356). Three to a row there,
+ // as the frame rates wrap four.
+ per-row: root.narrow ? 3 : 0;
changed(index) => { root.size-changed(index); }
}