提交 c10f99e7 编写于 作者: A Alex Dima

Fixes #21221: minimaps look broken for empty files

上级 b57bff6a
......@@ -3,6 +3,17 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
.monaco-editor .minimap-slider {
opacity: 0;
transition: opacity 100ms linear;
}
.monaco-editor .minimap:hover .minimap-slider {
opacity: 1;
}
.monaco-editor .minimap-slider.active {
opacity: 1;
}
.monaco-editor.vs .minimap-slider {
background: rgba(100, 100, 100, .4);
}
......
......@@ -440,6 +440,7 @@ export class Minimap extends ViewPart {
this._buffers = null;
this._domNode = createFastDomNode(document.createElement('div'));
this._domNode.setClassName('minimap');
this._domNode.setPosition('absolute');
this._domNode.setRight(this._context.configuration.editor.layoutInfo.verticalScrollbarWidth);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册