Skip to content

Instantly share code, notes, and snippets.

@vrtmrz
Last active October 6, 2023 10:31
Show Gist options
  • Save vrtmrz/ccd635c602f3421c08d66b8a19ed93ce to your computer and use it in GitHub Desktop.
Save vrtmrz/ccd635c602f3421c08d66b8a19ed93ce to your computer and use it in GitHub Desktop.
TagFolder hack CSS for prioritize active files
[data-type=tagfolder-link-view] .tree-item-children.nav-folder-children {
display: flex;
flex-direction: column;
}
[data-type=tagfolder-link-view] .tree-item.nav-folder {
order: -2;
}
[data-type=tagfolder-link-view] .tree-item.nav-folder:has(.is-active) {
order: -3;
}
[data-type=tagfolder-link-view] .tree-item.nav-file:has(.is-active) {
order: -1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment