Skip to content

fix: add horizontal scrolling for long values in json view#1177

Merged
cliffhall merged 1 commit intomodelcontextprotocol:mainfrom
Dinesht04:fix/fix-value-overflow
Apr 4, 2026
Merged

fix: add horizontal scrolling for long values in json view#1177
cliffhall merged 1 commit intomodelcontextprotocol:mainfrom
Dinesht04:fix/fix-value-overflow

Conversation

@Dinesht04
Copy link
Copy Markdown
Contributor

Summary

Fixes #1176 . Fixes overflowing of values from the container in JSON View

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Documentation update
  • Refactoring (no functional changes)
  • Test updates
  • Build/CI improvements

Changes Made

Added property 'overflow-x-auto' to the root div of JsonView component in JsonView.tsx .
Allows the user to scroll through the content.

Related Issues

Fixes: #1176

Testing

  • Tested in UI mode
  • Tested in CLI mode
  • Tested with STDIO transport
  • Tested with SSE transport
  • Tested with Streamable HTTP transport
  • Added/updated automated tests
  • Manual testing performed

Test Results and/or Instructions

mcpfix

Screenshots are encouraged to share your testing results for this change.

Checklist

  • Code follows the style guidelines (ran npm run prettier-fix)
  • Self-review completed
  • Code is commented where necessary
  • Documentation updated (README, comments, etc.)

Breaking Changes

N.A.

Additional Context

N.A.

Copy link
Copy Markdown
Member

@cliffhall cliffhall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@cliffhall cliffhall merged commit dd53302 into modelcontextprotocol:main Apr 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(UI-Bug) Values Overflow out of the container in Structured Content and Unstructured Content

2 participants