Skip to content

Commit e59d1e2

Browse files
author
Aiday Marlen Kyzy
authored
Merge pull request microsoft#162167 from microsoft/aiday/issue160271
Making the stash visible by changing the CSS parameters (Fixes microsoft#160271)
2 parents 55a5e84 + 8efbe80 commit e59d1e2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
.monaco-editor .sticky-widget {
3131
width : 100%;
32-
box-shadow : var(--vscode-scrollbar-shadow) 0 2px 6px -2px;
32+
box-shadow : var(--vscode-scrollbar-shadow) 0 3px 2px -2px;
3333
z-index : 2;
3434
background-color : var(--vscode-editorStickyScroll-background);
3535
}

src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export class StickyScrollWidget extends Disposable implements IOverlayWidget {
275275
const mouseOverEvent = new StandardMouseEvent(e);
276276
const text = mouseOverEvent.target.innerText;
277277
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
279279
this._hoverOnColumn = this._editor.getModel().getLineContent(line).indexOf(text) + 1 || -1;
280280
}
281281
}));
@@ -296,8 +296,9 @@ export class StickyScrollWidget extends Disposable implements IOverlayWidget {
296296
const minimapSide = this._editor.getOption(EditorOption.minimap).side;
297297
if (minimapSide === 'left') {
298298
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';
301302
}
302303
this._rootDomNode.style.zIndex = '11';
303304
}

0 commit comments

Comments
 (0)