Merge pull request #187698 from microsoft/aiday/limitingWidthOfHover

Limiting the width of the content hover to the content inside
This commit is contained in:
Aiday Marlen Kyzy
2023-08-14 14:28:14 +02:00
committed by GitHub
3 changed files with 49 additions and 13 deletions

View File

@@ -12,6 +12,7 @@
box-sizing: border-box;
animation: fadein 100ms linear;
line-height: 1.5em;
white-space: var(--vscode-hover-whiteSpace, normal);
}
.monaco-hover.hidden {
@@ -27,7 +28,7 @@
}
.monaco-hover .markdown-hover > .hover-contents:not(.code-hover-contents) {
max-width: var(--hover-maxWidth, 500px);
max-width: var(--vscode-hover-maxWidth, 500px);
word-wrap: break-word;
}
@@ -105,7 +106,7 @@
}
.monaco-hover .monaco-tokenized-source {
white-space: pre-wrap;
white-space: var(--vscode-hover-sourceWhiteSpace, pre-wrap);
}
.monaco-hover .hover-row.status-bar {