Make content hover text use full possible width (#187597)

* combinging the setting of max dimensions on the container and on the contents dom node

* adding the css variable in order to be able to specify the max width of the content inside

* cleaning the code

* changing the name of the variable

* cleaning the code

* placing the hover max width variable into the others category of vscode-known-variables json file

* defining a fall back value of 500 pixels

* inlinging the code

---------

Co-authored-by: Alexandru Dima <alexdima@microsoft.com>
This commit is contained in:
Aiday Marlen Kyzy
2023-07-26 08:54:48 +02:00
committed by GitHub
parent 5055118e96
commit 398e46ca68
3 changed files with 18 additions and 12 deletions

View File

@@ -27,7 +27,7 @@
}
.monaco-hover .markdown-hover > .hover-contents:not(.code-hover-contents) {
max-width: 500px;
max-width: var(--hover-maxWidth, 500px);
word-wrap: break-word;
}