mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user