You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Suggestion]: Add full-screen / immersive mode for code blocks on mobile #8723
Add a "Full-screen" or immersive focus mode button for code blocks and interactive sandboxes on mobile devices to prevent the "tunnel effect" in small viewports.
What problem does this feature solve ?
When browsing react.dev on mobile (smartphones with narrow viewports), interacting with code sandboxes or viewing long code snippets can feel cramped. Users have to scroll through tiny frames where both the code and the live preview compete for vertical space, making it difficult to read or test code comfortably.
Desired Solution
Add a subtle "Full-screen" / "Expand" icon button at the top-right corner of code blocks/sandboxes on mobile resolutions.
Tapping it should open an immersive full-screen modal or focus view containing the code editor and preview, giving the user enough breathing room to interact with the example.
A clear "Close" or "Exit" button to return to the normal page flow.
Additional context
This would significantly improve the mobile learning experience for developers reading the docs on the go !
Hi @smikitky !
I'd like to work on this issue. I'm planning to add a full-screen / expand button to the code blocks and Sandpack sandboxes on mobile viewports, opening an immersive view with the editor and preview plus a clear close button.
Could I be assigned to this? Happy to share an approach or a quick mockup before opening a PR if the team wants to align on the design first. Thanks!
Thanks for the heads-up! Could a maintainer confirm this feature is wanted and that I can pick it up? I'd like to align on the design before starting a PR.
Activity
nihar-ux18 commentedon Nov 3, 2026
Hi @smikitky !
I'd like to work on this issue. I'm planning to add a full-screen / expand button to the code blocks and Sandpack sandboxes on mobile viewports, opening an immersive view with the editor and preview plus a clear close button.
Could I be assigned to this? Happy to share an approach or a quick mockup before opening a PR if the team wants to align on the design first. Thanks!
TheCoderGeekSquadLeader commentedon Nov 3, 2026
/assign
nihar-ux18 commentedon Nov 3, 2026
Thanks for the heads-up! Could a maintainer confirm this feature is wanted and that I can pick it up? I'd like to align on the design before starting a PR.