Skip to content

Build your personal knowledge base with Trilium Notes

fix(tree): child note badge overlapping text (closes #8567)

Elian Doran5b1a2d93bfb4
diff --git a/apps/client/src/widgets/note_tree.css b/apps/client/src/widgets/note_tree.css
index dbcb66cbc1..8c4f6ad426 100644
--- a/apps/client/src/widgets/note_tree.css
+++ b/apps/client/src/widgets/note_tree.css
@@ -9,7 +9,6 @@
border-radius: 0.5em;
font-size: 0.7rem;
font-weight: normal;
- float: right;
vertical-align: middle;
}
diff --git a/apps/client/src/widgets/note_tree.ts b/apps/client/src/widgets/note_tree.ts
index 68b0310684..5c2aadb1ea 100644
--- a/apps/client/src/widgets/note_tree.ts
+++ b/apps/client/src/widgets/note_tree.ts
@@ -1992,7 +1992,7 @@ function buildEnhanceTitle() {
if (isSubtreeHidden && count > 0) {
const $badge = $(`<span class="note-indicator-icon subtree-hidden-badge">${count}</span>`);
$badge.attr("title", t("note_tree.subtree-hidden-tooltip", { count }));
- $span.find(".fancytree-title").append($badge);
+ $span.append($badge);
}
};
}