From 3e8f09d30679f449d61441e5bbbb0c82a48699b9 Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 26 Sep 2023 00:14:28 +0200 Subject: [PATCH] allow shrinking note title text in the tree to make space for the "add note" button https://github.com/zadam/trilium/discussions/4287 --- src/public/stylesheets/tree.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/public/stylesheets/tree.css b/src/public/stylesheets/tree.css index 70c99c3d7..25adf20d0 100644 --- a/src/public/stylesheets/tree.css +++ b/src/public/stylesheets/tree.css @@ -11,7 +11,10 @@ span.fancytree-node.fancytree-hide { } .fancytree-title { - flex: auto; + flex-basis: 0; /* to allow shrinking text to make space for buttons */ + flex-shrink: 1; + flex-grow: 1; + overflow: hidden; margin-left: 7px; outline: none; position: relative;