Skip to content

Add browser viewport presets to the preview panel#106

Merged
BunsDev merged 1 commit into
mainfrom
okcode/browser-viewport-presets
Mar 31, 2026
Merged

Add browser viewport presets to the preview panel#106
BunsDev merged 1 commit into
mainfrom
okcode/browser-viewport-presets

Conversation

@BunsDev
Copy link
Copy Markdown
Member

@BunsDev BunsDev commented Mar 31, 2026

Summary

  • Add a viewport preset picker to the preview panel with responsive, mobile, tablet, laptop, desktop, and ultrawide modes.
  • Resize the preview surface to match the selected preset and center it within the panel when a preset is active.
  • Persist preset selection per thread in the preview UI state store and migrate validation for stored preset values.
  • Add a store test update for the new persisted preset state shape.

Testing

  • Not run (PR content only).
  • Expected checks in CI: bun fmt, bun lint, bun typecheck.

- Persist per-thread viewport preset selection
- Size embedded preview surface to match selected preset
- Add responsive preset handling and state tests
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 31, 2026

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

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Mar 31, 2026 5:01pm

@github-actions github-actions Bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Mar 31, 2026
@BunsDev BunsDev merged commit f513a5f into main Mar 31, 2026
8 of 9 checks passed
@BunsDev BunsDev deleted the okcode/browser-viewport-presets 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:L 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