Skip to content

Add viewport presets, custom sizing, and orientation controls#274

Merged
BunsDev merged 1 commit into
mainfrom
okcode/view-type-switching
Apr 5, 2026
Merged

Add viewport presets, custom sizing, and orientation controls#274
BunsDev merged 1 commit into
mainfrom
okcode/view-type-switching

Conversation

@BunsDev

@BunsDev BunsDev commented Apr 5, 2026

Copy link
Copy Markdown
Member

Summary

  • Reworked the preview viewport picker from a menu into a compact preset strip with responsive, device, and custom viewport options.
  • Added portrait/landscape orientation toggling plus custom width/height inputs with clamping and persisted per-project state.
  • Updated the preview surface to reflect live dimensions and show transient size feedback when the viewport changes.
  • Removed obsolete template-planning docs from .plans and simplified the sidebar/home preview-related UI.

Testing

  • Not run (not requested).
  • Recommended checks: bun fmt
  • Recommended checks: bun lint
  • Recommended checks: bun typecheck

- Replace the preset menu with compact preset toggles
- Add custom viewport sizing, orientation switching, and live size feedback
- Persist preview orientation and custom viewport settings
@vercel

vercel Bot commented Apr 5, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Apr 5, 2026 11:24am
v0-compute-the-platform-to-build Ready Ready Preview, Open in v0 Apr 5, 2026 11:24am

@github-actions github-actions Bot added size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Apr 5, 2026
@BunsDev BunsDev merged commit 9078f33 into main Apr 5, 2026
10 of 11 checks passed
@BunsDev BunsDev deleted the okcode/view-type-switching branch April 6, 2026 21:31
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