Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(tree): let a row take the height its font asks for
Elian Doranf175a4733e1c
diff --git a/apps/client/src/stylesheets/tree.css b/apps/client/src/stylesheets/tree.cssindex a791f0578b..ea97a3b15a 100644--- a/apps/client/src/stylesheets/tree.css+++ b/apps/client/src/stylesheets/tree.css@@ -30,7 +30,7 @@ span.fancytree-node.fancytree-hide {.fancytree-node {display: flex;align-items: center;- height: 38px;+ height: 2.4em;padding: 4px;border: 1px solid transparent;border-radius: 5px;@@ -276,8 +276,10 @@ span.fancytree-node:hover .add-note-button {width: 100px;/* marker is by default position: relative which doesn't make sense */position: absolute !important;- /* heaving a height helps with positioning since the algorithm calculating "top" takes it into account */- height: 19px;+ /* dnd5 anchors the marker by its own vertical centre (`my: "left center"`) on the target+ title's top or bottom edge, so any height offsets the line by half of it. At zero the+ centre is the edge, which holds whatever height a row or its font takes. */+ height: 0;}#fancytree-drop-marker.fancytree-drop-after {