Skip to content

Project desktop preview bounds from viewport size#50

Merged
BunsDev merged 1 commit into
mainfrom
okcode/preview-panel-layout
Mar 28, 2026
Merged

Project desktop preview bounds from viewport size#50
BunsDev merged 1 commit into
mainfrom
okcode/preview-panel-layout

Conversation

@BunsDev
Copy link
Copy Markdown
Member

@BunsDev BunsDev commented Mar 28, 2026

Summary

  • Project desktop preview bounds into native content coordinates using viewport metadata so the preview stays aligned when the web UI is scaled.
  • Preserve visibility and empty-state handling while clamping projected bounds to the available native content area.
  • Add coverage for projection, sanitation, and controller behavior.
  • Include related UI/runtime cleanup across preview and shared code paths.

Testing

  • bun fmt
  • bun lint
  • bun typecheck
  • Not run: bun run test

- include viewport dimensions in desktop preview bounds
- project and clamp preview view bounds to native content size
- add tests for sanitization and bounds projection
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Mar 28, 2026 4:51am

@github-actions github-actions Bot added size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Mar 28, 2026
@BunsDev BunsDev merged commit da024fb into main Mar 28, 2026
7 of 9 checks passed
@BunsDev BunsDev deleted the okcode/preview-panel-layout branch March 31, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant