Skip to content

end to end app store screenshot creation using AI

fix(mac): size the Mac window so default layouts clear the caption

Parth Jadhava5fb683d840c
diff --git a/skills/app-store-screenshots/template/src/components/editor/slide-canvas.tsx b/skills/app-store-screenshots/template/src/components/editor/slide-canvas.tsx
index 49332c3..4b18f2c 100644
--- a/skills/app-store-screenshots/template/src/components/editor/slide-canvas.tsx
+++ b/skills/app-store-screenshots/template/src/components/editor/slide-canvas.tsx
@@ -95,7 +95,7 @@ export function getFrameForDevice(device: Device, orientation: Orientation): {
case "carplay":
return { Comp: CarPlayScreen, widthFn: carPlayW, smallWidthFn: (cW, cH) => carPlayW(cW, cH, 0.7) };
case "mac":
- return { Comp: MacWindow, widthFn: macW, smallWidthFn: (cW, cH) => macW(cW, cH, 0.7) };
+ return { Comp: MacWindow, widthFn: macW, smallWidthFn: (cW, cH) => macW(cW, cH, 0.5) };
case "android":
return { Comp: AndroidPhone, widthFn: phoneW, smallWidthFn: phoneWSmall };
case "android-7":
diff --git a/skills/app-store-screenshots/template/src/lib/constants.ts b/skills/app-store-screenshots/template/src/lib/constants.ts
index 4b73de8..a41371a 100644
--- a/skills/app-store-screenshots/template/src/lib/constants.ts
+++ b/skills/app-store-screenshots/template/src/lib/constants.ts
@@ -143,8 +143,10 @@ export function watchW(cW: number, cH: number, clamp = 0.52) {
export function carPlayW(cW: number, cH: number, clamp = 0.86) {
return Math.min(clamp, 0.58 * (cH / cW) * CARPLAY_RATIO);
}
+// A 16:10 window on a 16:10 canvas: keep it to ~62% of the canvas height so
+// the caption above/below (and beside, in split-landscape) stays clear.
export function macW(cW: number, cH: number, clamp = 0.86) {
- return Math.min(clamp, 0.82 * (cH / cW) * MAC_RATIO);
+ return Math.min(clamp, 0.62 * (cH / cW) * MAC_RATIO);
}
// ---------- Themes ----------
diff --git a/skills/app-store-screenshots/template/src/lib/types.ts b/skills/app-store-screenshots/template/src/lib/types.ts
index 2c2a57c..b909a67 100644
--- a/skills/app-store-screenshots/template/src/lib/types.ts
+++ b/skills/app-store-screenshots/template/src/lib/types.ts
@@ -21,7 +21,7 @@ export type SlideLayout =
| "device-top" // device top, headline bottom (contrast)
| "two-devices" // back + front phones, headline above
| "no-device" // big headline + decorative blob, no device
- | "split-landscape" // landscape tablets only: caption left + device right
+ | "split-landscape" // landscape tablets + Mac: caption left + device right
| "feature-graphic"; // 1024×500 banner with icon + name + tagline
// Per-element rect in canvas pixel space. Optional rotation in degrees and zIndex.