When scrolling the colour resets to the first colour due to Obsidian using virtual scrolling and removing elements from the DOM.
e.g. I open my 3rd folder, which is yellow and scroll down through several subfolders and the indent lines suddenly turn to red, the first colour.
Locally I have a fix for this which uses data-path instead of :nth-child, but that means that you need to hard code folder names. I will think about a general fix.
When scrolling the colour resets to the first colour due to Obsidian using virtual scrolling and removing elements from the DOM.
e.g. I open my 3rd folder, which is yellow and scroll down through several subfolders and the indent lines suddenly turn to red, the first colour.
Locally I have a fix for this which uses data-path instead of :nth-child, but that means that you need to hard code folder names. I will think about a general fix.