fix: wrap long docstrings in parameter hints widget#292258
Merged
mjbvz merged 2 commits intomicrosoft:mainfrom Mar 11, 2026
Merged
fix: wrap long docstrings in parameter hints widget#292258mjbvz merged 2 commits intomicrosoft:mainfrom
mjbvz merged 2 commits intomicrosoft:mainfrom
Conversation
Add overflow-wrap and word-break to the parameter hints docs section so that long docstrings wrap instead of displaying on a single line with horizontal scroll. Also add min-width: 0 for proper flexbox sizing and max-width: 100% for markdown content. Fixes microsoft#142888 Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes long docstrings in the parameter hints widget that were not wrapping properly, making them difficult to read.
Changes:
- Adds CSS text wrapping properties to
.docsand.markdown-docsclasses to ensure long text wraps within the widget's max-width constraint (440px) - Adds
min-width: 0to allow proper flexbox shrinking behavior
Contributor
Author
|
Ready for review. CSS-only change in |
mjbvz
approved these changes
Mar 11, 2026
TylerLeonhardt
approved these changes
Mar 11, 2026
Contributor
Author
|
Hi @mjbvz @TylerLeonhardt — thank you for the approvals! Just wanted to check if there's anything else needed from my side for this to be merged. Happy to make any final adjustments if needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes long docstrings in the parameter hints widget not wrapping. Previously, long strings were displayed on a single line with only a vertical scroll bar, making it impossible to read long descriptions.
Changes
overflow-wrap: break-wordandword-break: break-wordto.docsso long strings wrap within the widget widthmin-width: 0to.docsfor proper flexbox sizing (allows the element to shrink below content size)overflow-wrap,word-break, andmax-width: 100%to.markdown-docsfor rendered markdown contentBefore
Long docstrings displayed on a single line, requiring horizontal scroll (but no horizontal scrollbar was shown).
After
Long docstrings wrap within the parameter hints widget (max-width: 440px), making them readable without horizontal scrolling.
Fixes #142888
Made with Cursor