mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Making the stash visible by changing the CSS parameters
This commit is contained in:
parent
a1e8a52697
commit
8efbe805a7
|
@ -29,7 +29,7 @@
|
|||
|
||||
.monaco-editor .sticky-widget {
|
||||
width : 100%;
|
||||
box-shadow : var(--vscode-scrollbar-shadow) 0 2px 6px -2px;
|
||||
box-shadow : var(--vscode-scrollbar-shadow) 0 3px 2px -2px;
|
||||
z-index : 2;
|
||||
background-color : var(--vscode-editorStickyScroll-background);
|
||||
}
|
||||
|
|
|
@ -275,7 +275,7 @@ export class StickyScrollWidget extends Disposable implements IOverlayWidget {
|
|||
const mouseOverEvent = new StandardMouseEvent(e);
|
||||
const text = mouseOverEvent.target.innerText;
|
||||
this._hoverOnLine = line;
|
||||
// TODO: workaround to find the column index, perhaps need more solid solution
|
||||
// TODO: workaround to find the column index, perhaps need a more solid solution
|
||||
this._hoverOnColumn = this._editor.getModel().getLineContent(line).indexOf(text) + 1 || -1;
|
||||
}
|
||||
}));
|
||||
|
@ -296,8 +296,9 @@ export class StickyScrollWidget extends Disposable implements IOverlayWidget {
|
|||
const minimapSide = this._editor.getOption(EditorOption.minimap).side;
|
||||
if (minimapSide === 'left') {
|
||||
this._rootDomNode.style.marginLeft = this._editor.getLayoutInfo().minimap.minimapCanvasOuterWidth + 'px';
|
||||
} else if (minimapSide === 'right') {
|
||||
this._rootDomNode.style.marginLeft = '0px';
|
||||
}
|
||||
else if (minimapSide === 'right') {
|
||||
this._rootDomNode.style.marginLeft = '1px';
|
||||
}
|
||||
this._rootDomNode.style.zIndex = '11';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue