Skip to content

✨ Enhancement: Improve Code Block Visibility on Mobile View – Suggest Expand/Collapse Option #1714

@chauhan-varun

Description

@chauhan-varun

Is your feature request related to a problem? Please describe

I noticed that when viewing the documentation pages on a mobile device, many code blocks are cut off horizontally and not fully visible without side-scrolling. This makes it difficult to read JSON examples properly.

Screencast.from.2025-06-15.19-23-38.webm

Code block is clipped, hard to read without side-scrolling.

In contrast, Microsoft Learn implements a much more user-friendly experience by adding an “Expand” or expandable code area, making it easier to view full content even on smaller screens.

Describe the solution you'd like

Example from Microsoft Learn:

Screencast.from.2025-06-15.19-24-02.webm

Suggestion:

Add an expand/collapse button or a full-width overlay view for code blocks, especially on mobile, to enhance readability and overall user experience.

Benefit:

  • Easier to consume JSON samples on mobile
  • Consistent with modern documentation standards
  • Better accessibility and UX

Thank you for considering this improvement!
I'd love to work on this issue if it is approved

Are you working on this?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is the initial status for an issue that requires triage.✨ EnhancementIndicates that the issue suggests an improvement or new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions