claude-code - 💡(How to fix) Fix Preview tool: allow user to resize viewport from UI

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

Current Workaround

RAW_BUFFERClick to expand / collapse

Feature Request

The preview_resize tool allows Claude to programmatically resize the preview viewport, but there is no way for the user to resize or switch presets directly from the preview UI.

Use Case

When doing responsive UI work, I frequently need to check layouts at different breakpoints (mobile 375px, tablet 768px, desktop 1280px, wide 1536px+). Currently I have to ask Claude to run preview_resize each time, which adds a round-trip.

Proposal

Add a viewport size selector to the preview panel UI:

  • A dropdown or segmented control with common presets (Mobile / Tablet / Desktop / Native)
  • Or a draggable resize handle on the preview frame edges
  • Bonus: show current viewport dimensions somewhere in the preview chrome

This would make responsive development workflows much faster since the user can toggle sizes without going through the chat.

Current Workaround

Ask Claude to call preview_resize with the desired preset or dimensions each time.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING