mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-26 18:27:38 +01:00
Fixes #19979: Align codelens text to the bottom
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
text-overflow: ellipsis;
|
||||
font-size: 90%;
|
||||
color: #999999;
|
||||
vertical-align: sub;
|
||||
}
|
||||
|
||||
.monaco-editor .codelens-decoration > span,
|
||||
@@ -19,6 +18,7 @@
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
white-space: nowrap;
|
||||
vertical-align: sub;
|
||||
}
|
||||
|
||||
.monaco-editor .codelens-decoration > a {
|
||||
|
||||
@@ -71,7 +71,9 @@ class CodeLensContentWidget implements editorBrowser.IContentWidget {
|
||||
this.setSymbolRange(symbolRange);
|
||||
|
||||
this._domNode = document.createElement('span');
|
||||
this._domNode.style.height = `${editor.getConfiguration().lineHeight}px`;
|
||||
const lineHeight = editor.getConfiguration().lineHeight;
|
||||
this._domNode.style.height = `${lineHeight}px`;
|
||||
this._domNode.style.lineHeight = `${lineHeight}px`;
|
||||
this._domNode.innerHTML = ' ';
|
||||
dom.addClass(this._domNode, 'codelens-decoration');
|
||||
dom.addClass(this._domNode, 'invisible-cl');
|
||||
|
||||
Reference in New Issue
Block a user