adding css to sticky scroll

pull/233110/head
Aiday Marlen Kyzy 2025-01-08 13:35:35 +01:00
parent b4b62de2b6
commit 4888a4dce0
No known key found for this signature in database
GPG Key ID: D55A35EAC79FDA9A
2 changed files with 3 additions and 1 deletions

View File

@ -50,6 +50,9 @@
.monaco-editor .sticky-line-number-inner {
display: inline-block;
text-align: right;
line-height: normal;
position: absolute;
bottom: 0;
}
.monaco-editor .sticky-widget {

View File

@ -365,7 +365,6 @@ export class StickyScrollWidget extends Disposable implements IOverlayWidget {
innerLineNumberHTML.innerText = Math.abs(line - this._editor.getPosition()!.lineNumber).toString();
}
innerLineNumberHTML.className = 'sticky-line-number-inner';
innerLineNumberHTML.style.lineHeight = `${height}px`;
innerLineNumberHTML.style.width = `${layoutInfo.lineNumbersWidth}px`;
innerLineNumberHTML.style.paddingLeft = `${layoutInfo.lineNumbersLeft}px`;