提交 1b5ff0a2 编写于 作者: J Joao Moreno

tree indent guides: dynamic heights

上级 78ae98cc
......@@ -381,7 +381,13 @@ class TreeRenderer<T, TFilterData, TTemplateData> implements IListRenderer<ITree
const disposableStore = new DisposableStore();
const width = this.indent * target.depth;
const svg = $.SVG('svg', { 'shape-rendering': 'crispEdges', width: `${width}`, height: `${height}`, viewBox: `0 0 ${width} ${height}` });
const svg = $.SVG('svg', {
'shape-rendering': 'crispEdges',
preserveAspectRatio: 'none',
width: `${width}`,
height: `${height}`,
viewBox: `0 0 ${width} ${height}`
});
let node = target;
let i = 1;
......
......@@ -81,6 +81,10 @@
background-image: url("loading-hc.svg");
}
.monaco-list .monaco-tl-indent > svg {
height: 100%;
}
.monaco-list .monaco-tl-indent > svg > line {
stroke: transparent;
transition: stroke 0.1s linear;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册