claude-code - 💡(How to fix) Fix [Preview] Add tablet and wide-screen device simulation presets [2 comments, 2 participants]

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…
GitHub stats
anthropics/claude-code#46895Fetched 2026-04-12 13:30:14
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3commented ×2

Root Cause

  • Responsive design is not optional — modern web projects must work across all screen sizes.
  • Tailwind CSS (the most popular utility framework) uses breakpoints at sm:640, md:768, lg:1024, xl:1280, 2xl:1536 — developers need to verify each one.
  • Without tablet/desktop presets, the preview tool is essentially unusable for professional responsive development.
  • Being forced to switch to an external browser DevTools defeats the purpose of having an integrated preview.
RAW_BUFFERClick to expand / collapse

Problem

The built-in preview currently offers only a basic mobile device simulation toggle. There are no options for tablet (e.g., iPad, Galaxy Tab) or wide-screen / desktop viewports. This is a critical gap for any frontend developer working on responsive layouts.

Current Behavior

  • Preview has a single "mobile" toggle — extremely limited.
  • No way to simulate tablet viewports (768px–1024px range).
  • No way to simulate specific wide-screen breakpoints (1280px, 1440px, 1920px).
  • Developers are forced to leave the Claude Code app and use an external browser's DevTools to test responsive layouts — breaking the workflow entirely.

Expected Behavior

A device/viewport selector in the preview toolbar offering at minimum:

PresetWidthUse Case
Mobile S320pxSmall phones
Mobile M375pxiPhone SE / standard
Mobile L428pxiPhone Pro Max / large
Tablet Portrait768pxiPad / tablets vertical
Tablet Landscape1024pxiPad / tablets horizontal
Laptop1280pxStandard laptop
Desktop1440pxCommon desktop
Wide1920pxFull HD monitors
CustomUser-definedAny specific size

Why This Matters

  • Responsive design is not optional — modern web projects must work across all screen sizes.
  • Tailwind CSS (the most popular utility framework) uses breakpoints at sm:640, md:768, lg:1024, xl:1280, 2xl:1536 — developers need to verify each one.
  • Without tablet/desktop presets, the preview tool is essentially unusable for professional responsive development.
  • Being forced to switch to an external browser DevTools defeats the purpose of having an integrated preview.

Suggested Implementation

  • A dropdown or segmented control in the preview toolbar: 📱 Mobile | 📱 Tablet | 💻 Desktop | 🖥 Wide | ⚙ Custom
  • Each preset sets the viewport width/height accordingly.
  • A "Custom" option with manual width × height input fields.
  • Optionally show the current viewport dimensions as a label (e.g., "390 × 844").

Environment

  • Claude Code Desktop App (Windows 11)
  • Daily professional use for responsive frontend development (Next.js / Tailwind CSS)

extent analysis

TL;DR

Implement a device/viewport selector in the preview toolbar with presets for mobile, tablet, laptop, desktop, and wide-screen viewports to support responsive design development.

Guidance

  • Add a dropdown or segmented control to the preview toolbar with options for different devices and viewports, such as Mobile, Tablet, Laptop, Desktop, and Wide.
  • Each preset should set the viewport width and height accordingly, with optional custom width and height input fields.
  • Consider displaying the current viewport dimensions as a label to provide feedback to the developer.
  • Ensure the selector is easily accessible and visible in the preview toolbar to streamline the development workflow.

Example

A possible implementation could involve adding a ViewportSelector component to the preview toolbar, with a dropdown menu containing the different presets and a custom input field for manual width and height entry.

Notes

The implementation details may vary depending on the specific requirements and constraints of the Claude Code Desktop App, such as the UI framework and design guidelines being used.

Recommendation

Apply a workaround by implementing a custom viewport selector using a third-party library or a temporary solution until the feature is officially added to the Claude Code Desktop App, as it is crucial for responsive design development.

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

claude-code - 💡(How to fix) Fix [Preview] Add tablet and wide-screen device simulation presets [2 comments, 2 participants]