File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/vs/editor/contrib/stickyScroll/browser Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 29
29
30
30
.monaco-editor .sticky-widget {
31
31
width : 100% ;
32
- box-shadow : var (--vscode-scrollbar-shadow ) 0 2 px 6 px -2px ;
32
+ box-shadow : var (--vscode-scrollbar-shadow ) 0 3 px 2 px -2px ;
33
33
z-index : 2 ;
34
34
background-color : var (--vscode-editorStickyScroll-background );
35
35
}
Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ export class StickyScrollWidget extends Disposable implements IOverlayWidget {
275
275
const mouseOverEvent = new StandardMouseEvent ( e ) ;
276
276
const text = mouseOverEvent . target . innerText ;
277
277
this . _hoverOnLine = line ;
278
- // TODO: workaround to find the column index, perhaps need more solid solution
278
+ // TODO: workaround to find the column index, perhaps need a more solid solution
279
279
this . _hoverOnColumn = this . _editor . getModel ( ) . getLineContent ( line ) . indexOf ( text ) + 1 || - 1 ;
280
280
}
281
281
} ) ) ;
@@ -296,8 +296,9 @@ export class StickyScrollWidget extends Disposable implements IOverlayWidget {
296
296
const minimapSide = this . _editor . getOption ( EditorOption . minimap ) . side ;
297
297
if ( minimapSide === 'left' ) {
298
298
this . _rootDomNode . style . marginLeft = this . _editor . getLayoutInfo ( ) . minimap . minimapCanvasOuterWidth + 'px' ;
299
- } else if ( minimapSide === 'right' ) {
300
- this . _rootDomNode . style . marginLeft = '0px' ;
299
+ }
300
+ else if ( minimapSide === 'right' ) {
301
+ this . _rootDomNode . style . marginLeft = '1px' ;
301
302
}
302
303
this . _rootDomNode . style . zIndex = '11' ;
303
304
}
You can’t perform that action at this time.
0 commit comments