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
scrolling inside tree fixed
azivnerc23928d07030
diff --git a/TODO b/TODOindex a9cb572aff..36459696f7 100644--- a/TODO+++ b/TODO@@ -1,4 +1,3 @@-- some features (recent notes, linking to notes) don't work well with cloned notes- when jumping to notes, tree does not scroll- logout detection- conflict detectiondiff --git a/src/templates/app.html b/src/templates/app.htmlindex ad264306da..c301b4984c 100644--- a/src/templates/app.html+++ b/src/templates/app.html@@ -15,7 +15,7 @@<div class="hide-toggle" style="width: 300px; height: 100%; float: left;"><button type="button" class="btn" onclick="createNewTopLevelNote()">Create new note</button>- <div id="tree" style="overflow: scroll; height: 100%;">+ <div id="tree"></div></div>diff --git a/static/js/init.js b/static/js/init.jsindex 91d37e0f9a..3b1c5ee4b0 100644--- a/static/js/init.js+++ b/static/js/init.js@@ -1,6 +1,6 @@$(function() {$(window).resize(function() {- $('div#tree').height($(window).height() - $('div#tree').offset().top);+ $('ul.fancytree-container').height($(window).height() - $('ul.fancytree-container').offset().top - 10);$('div.note-editable').height($(window).height() - $('div.note-editable').offset().top);});$(window).resize();diff --git a/static/js/note.js b/static/js/note.jsindex 71086c7506..44125e171d 100644--- a/static/js/note.js+++ b/static/js/note.js@@ -176,7 +176,7 @@ function addRecentNote(noteId, noteTitle) {// if it's already there, remove the noterecentNotes = recentNotes.filter(note => note.noteId !== noteId);- // console.log("added after " + (new Date().getTime() - origDate.getTime()));+ console.log("added after " + (new Date().getTime() - origDate.getTime()));recentNotes.unshift({noteId: noteId,diff --git a/static/style.css b/static/style.cssindex 828695a550..9744005aa6 100644--- a/static/style.css+++ b/static/style.css@@ -23,4 +23,11 @@.note-editable p {padding: 0;margin: 0;-}\ No newline at end of file+}++ul.fancytree-container {+ width: 290px;+ height: 400px;+ overflow: auto;+ position: relative;+}