Skip to content

fix(devices): correct iPhone Duo outer screen to its D-shaped corners - #24

Merged
lbb00 merged 2 commits into
mainfrom
fix/iphone-duo-outer-corners
Sep 14, 2026
Merged

lbb00 merged 2 commits into
mainfrom
fix/iphone-duo-outer-corners

Conversation

@lbb00

@lbb00 lbb00 commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • iPhone Duo (outer)'s screen corners were uniformly rounded; the real device has near-right-angle corners on the hinge side and large rounded corners on the free edge (a "D" shape).
  • Adds a generic screenCorners per-corner override to DeviceShell (backward compatible — omitted corners fall back to the uniform screenRadius), threaded through resolution, portrait/landscape rotation, and the rendered CSS (--device-screen-radius-* variables and an elliptical .screen/body border-radius).
  • Corner values (66px free edge / 12px hinge) are sourced from a third-party open-source reconstruction of Apple's USDZ/AR model; 66 is independently cross-checked against iPhone 18 Pro Max's screenRadius: 62 scaled by screen width. Documented as provisional in a code comment.

Test plan

  • pnpm --filter @devicekit/devices test — all passing
  • pnpm --filter @devicekit/frame test — all passing
  • pnpm --filter @devicekit/devices build / lint — clean
  • pnpm --filter @devicekit/frame build / lint — clean
  • Visually verified via a static build of the demo + screenshot: hinge-side corners near-right-angle, free-edge corners large and rounded, correctly rotating between portrait/landscape

🤖 Generated with Claude Code

The outer screen used a uniform screenRadius, but the real device has
near-right-angle corners on the hinge side and large rounded corners on
the free edge. Adds a generic per-corner screenCorners override to
DeviceShell (any corner can diverge from the uniform radius) and threads
it through resolution, orientation rotation, and the rendered CSS so the
D-shape rotates correctly between portrait and landscape.
@lbb00
lbb00 merged commit 8cfd905 into main Sep 14, 2026
1 check passed
@lbb00
lbb00 deleted the fix/iphone-duo-outer-corners branch September 14, 2026 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant