Skip to content

Commit 168bef6

Browse files
authored
Merge pull request microsoft#250744 from microsoft/joh/outstanding-badger
animate tree indent guides via opacity
2 parents d8b39a5 + 8cfe3ee commit 168bef6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/vs/base/browser/ui/tree/abstractTree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2830,8 +2830,8 @@ export abstract class AbstractTree<T, TFilterData, TRef> implements IDisposable
28302830
const content: string[] = [];
28312831

28322832
if (styles.treeIndentGuidesStroke) {
2833-
content.push(`.monaco-list${suffix}:hover .monaco-tl-indent > .indent-guide, .monaco-list${suffix}.always .monaco-tl-indent > .indent-guide { border-color: ${styles.treeInactiveIndentGuidesStroke}; }`);
2834-
content.push(`.monaco-list${suffix} .monaco-tl-indent > .indent-guide.active { border-color: ${styles.treeIndentGuidesStroke}; }`);
2833+
content.push(`.monaco-list${suffix}:hover .monaco-tl-indent > .indent-guide, .monaco-list${suffix}.always .monaco-tl-indent > .indent-guide { opacity: 1; border-color: ${styles.treeInactiveIndentGuidesStroke}; }`);
2834+
content.push(`.monaco-list${suffix} .monaco-tl-indent > .indent-guide.active { opacity: 1; border-color: ${styles.treeIndentGuidesStroke}; }`);
28352835
}
28362836

28372837
// Sticky Scroll Background

src/vs/base/browser/ui/tree/media/tree.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@
3030
box-sizing: border-box;
3131
height: 100%;
3232
border-left: 1px solid transparent;
33+
opacity: 0;
3334
}
3435

3536
.monaco-workbench:not(.reduce-motion) .monaco-tl-indent > .indent-guide {
36-
transition: border-color 0.1s linear;
37+
transition: opacity 0.1s linear;
3738
}
3839

3940
.monaco-tl-twistie,

0 commit comments

Comments
 (0)