fix: wrap long docstrings in parameter hints widget

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 #142888

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Murat Aslan
2026-02-02 11:33:56 +03:00
parent 6e3bf5072f
commit e76d9c9ee3

View File

@@ -76,6 +76,9 @@
.monaco-editor .parameter-hints-widget .docs {
padding: 0 10px 0 5px;
white-space: pre-wrap;
overflow-wrap: break-word;
word-break: break-word;
min-width: 0;
}
.monaco-editor .parameter-hints-widget .docs.empty {
@@ -93,6 +96,9 @@
.monaco-editor .parameter-hints-widget .docs .markdown-docs {
white-space: initial;
overflow-wrap: break-word;
word-break: break-word;
max-width: 100%;
}
.monaco-editor .parameter-hints-widget .docs code {