hello,im’s writing this for file icon:.nav-folder-children .tree-item.nav-file div[data-path$='.txt'] .nav-file-title-content::before { content: '📄'; }
it works perfect in subfolder,but not work in the root folder,how to modify this ,thanks
Give this a try for all .txt
files no matter their path:
div[data-path$='.txt'] .nav-file-title-content::before {
content: '📄 ';
}
@ ariehen You are genius,works perfect now,thanks!