Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

misc bits

Richie McIlroybb0310d10994
diff --git a/Cargo.lock b/Cargo.lock
index 0d759a4c6..7f8eaa90f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1172,7 +1172,7 @@ dependencies = [
[[package]]
name = "cap-desktop"
-version = "0.3.84"
+version = "0.4.0"
dependencies = [
"anyhow",
"async-stream",
diff --git a/apps/desktop/src/routes/screenshot-editor/AnnotationTools.tsx b/apps/desktop/src/routes/screenshot-editor/AnnotationTools.tsx
index 6a0874925..41927cc45 100644
--- a/apps/desktop/src/routes/screenshot-editor/AnnotationTools.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/AnnotationTools.tsx
@@ -1,4 +1,5 @@
import { cx } from "cva";
+import type { Component } from "solid-js";
import Tooltip from "~/components/Tooltip";
import IconLucideArrowUpRight from "~icons/lucide/arrow-up-right";
import IconLucideCircle from "~icons/lucide/circle";
@@ -55,8 +56,6 @@ export function AnnotationTools() {
);
}
-import type { Component } from "solid-js";
-
function ToolButton(props: {
tool: AnnotationType | "select";
icon: Component<{ class?: string }>;
diff --git a/apps/desktop/src/routes/screenshot-editor/Header.tsx b/apps/desktop/src/routes/screenshot-editor/Header.tsx
index 6570f3e3d..87d7f75de 100644
--- a/apps/desktop/src/routes/screenshot-editor/Header.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/Header.tsx
@@ -47,8 +47,8 @@ export function Header() {
},
size: {
...(project.background.crop?.size ?? {
- x: frame?.width ?? 0,
- y: frame?.data.height ?? 0,
+ x: frame?.data?.width ?? 0,
+ y: frame?.data?.height ?? 0,
}),
},
});