diff --git a/TODO b/TODO index a9cb572af..36459696f 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 detection diff --git a/src/templates/app.html b/src/templates/app.html index ad264306d..c301b4984 100644 --- a/src/templates/app.html +++ b/src/templates/app.html @@ -15,7 +15,7 @@
-
+
diff --git a/static/js/init.js b/static/js/init.js index 91d37e0f9..3b1c5ee4b 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.js index 71086c750..44125e171 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 note recentNotes = 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.css index 828695a55..9744005aa 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; +}