mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-08 07:44:33 +01:00
nowrap whitespace, trim code lens titles, fixes https://github.com/microsoft/vscode/issues/106718
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
overflow: hidden;
|
||||
display: inline-block;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.monaco-editor .codelens-decoration > span,
|
||||
|
||||
@@ -88,7 +88,7 @@ class CodeLensContentWidget implements IContentWidget {
|
||||
}
|
||||
hasSymbol = true;
|
||||
if (lens.command) {
|
||||
const title = renderCodicons(lens.command.title);
|
||||
const title = renderCodicons(lens.command.title.trim());
|
||||
if (lens.command.id) {
|
||||
children.push(dom.$('a', { id: String(i) }, ...title));
|
||||
this._commands.set(String(i), lens.command);
|
||||
|
||||
Reference in New Issue
Block a user