Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

fix(desktop): allow capture areas down to 60 Γ— 30

Luis Ortiz846e6241fcb2
diff --git a/apps/desktop/scripts/check-overlay.ts b/apps/desktop/scripts/check-overlay.ts
index f3d3aec..710fbd0 100644
--- a/apps/desktop/scripts/check-overlay.ts
+++ b/apps/desktop/scripts/check-overlay.ts
@@ -83,7 +83,7 @@ app.whenReady().then(async () => {
);
const tiny = clampToDisplays({ x: 0, y: 0, width: 10, height: 10 });
- check('honours the minimum size', tiny.width >= 240 && tiny.height >= 160, `${tiny.width} Γ— ${tiny.height}`);
+ check('honours the minimum size', tiny.width >= 60 && tiny.height >= 30, `${tiny.width} Γ— ${tiny.height}`);
overlay.edit();
await settle();
const editors = overlayWindows();
diff --git a/apps/desktop/src/main/capture/region.ts b/apps/desktop/src/main/capture/region.ts
index 46bef72..0d82fea 100644
--- a/apps/desktop/src/main/capture/region.ts
+++ b/apps/desktop/src/main/capture/region.ts
@@ -9,7 +9,7 @@ export interface Region {
height: number;
}
-export const MIN_REGION = { width: 240, height: 160 };
+export const MIN_REGION = { width: 60, height: 30 };
function file(): string {
return join(app.getPath('userData'), 'capture-region.json');
diff --git a/apps/desktop/src/renderer/overlay/editor.ts b/apps/desktop/src/renderer/overlay/editor.ts
index 946c44e..4bde3a5 100644
--- a/apps/desktop/src/renderer/overlay/editor.ts
+++ b/apps/desktop/src/renderer/overlay/editor.ts
@@ -1,7 +1,7 @@
import { el } from './el';
import type { Region } from './types';
-const MIN = { width: 240, height: 160 };
+const MIN = { width: 60, height: 30 };
const HANDLES = ['nw', 'n', 'ne', 'e', 'se', 's', 'sw', 'w'] as const;