adding css changes to sticky scroll

pull/233110/head
Aiday Marlen Kyzy 2025-01-07 16:21:19 +01:00
parent 54e89580c7
commit e75e7f1d2b
No known key found for this signature in database
GPG Key ID: 24A8B53DBD26FF4E
2 changed files with 10 additions and 5 deletions

View File

@ -25,7 +25,8 @@
background-color: inherit;
}
.monaco-editor .sticky-line-number, .monaco-editor .sticky-line-content {
.monaco-editor .sticky-line-number,
.monaco-editor .sticky-line-content {
color: var(--vscode-editorLineNumber-foreground);
white-space: nowrap;
display: inline-block;
@ -35,10 +36,10 @@
.monaco-editor .sticky-line-number .codicon-folding-expanded,
.monaco-editor .sticky-line-number .codicon-folding-collapsed {
float: right;
transition: var(--vscode-editorStickyScroll-foldingOpacityTransition);
display: flex;
align-items: center;
display: inline-block;
vertical-align: text-top;
margin-left: 5px;
}
.monaco-editor .sticky-line-content {
@ -47,9 +48,14 @@
white-space: nowrap;
}
.monaco-editor .sticky-line-content > span {
vertical-align: text-top;
}
.monaco-editor .sticky-line-number-inner {
display: inline-block;
text-align: right;
vertical-align: text-top;
}
.monaco-editor .sticky-widget {

View File

@ -365,7 +365,6 @@ export class StickyScrollWidget extends Disposable implements IOverlayWidget {
innerLineNumberHTML.style.lineHeight = `${height}px`;
innerLineNumberHTML.style.width = `${layoutInfo.lineNumbersWidth}px`;
innerLineNumberHTML.style.paddingLeft = `${layoutInfo.lineNumbersLeft}px`;
innerLineNumberHTML.style.verticalAlign = 'bottom';
lineNumberHTMLNode.appendChild(innerLineNumberHTML);
const foldingIcon = this._renderFoldingIconForLine(foldingModel, line);