Skip to content

Build your personal knowledge base with Trilium Notes

fix(tree): scale only the line box with the tree font (closes #11732)

Elian Doranbf256ae5dbf4
diff --git a/apps/client/src/stylesheets/tree.css b/apps/client/src/stylesheets/tree.css
index 26f018e5fe..6c9c4faeeb 100644
--- a/apps/client/src/stylesheets/tree.css
+++ b/apps/client/src/stylesheets/tree.css
@@ -30,7 +30,8 @@ span.fancytree-node.fancytree-hide {
.fancytree-node {
display: flex;
align-items: center;
- height: 2.4em;
+ /* The line box follows the tree font; the space around it stays fixed. */
+ height: calc(1lh + 14px);
padding: 4px;
border: 1px solid transparent;
border-radius: 5px;