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(floating_buttons): wrong position when at the top of the note
Elian Doran3514e3d0577e
diff --git a/apps/client/src/widgets/containers/content_header.ts b/apps/client/src/widgets/containers/content_header.tsindex c4b38bbfd7..17ec4651f1 100644--- a/apps/client/src/widgets/containers/content_header.ts+++ b/apps/client/src/widgets/containers/content_header.ts@@ -69,7 +69,7 @@ export default class ContentHeader extends Container<BasicWidget> {updateSafeMargin() {const parentEl = this.parentElement?.closest<HTMLDivElement>(".note-split");- if (this.isFloating) {+ if (this.isFloating || this.parentElement!.scrollTop === 0) {parentEl!.style.setProperty("--content-header-height", `${this.currentHeight}px`);} else {parentEl!.style.removeProperty("--content-header-height");