tree indent guides: dynamic heights
This commit is contained in:
parent
78ae98cce5
commit
1b5ff0a240
2 changed files with 11 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue