diff --git a/src/public/javascripts/services/tree_cache.js b/src/public/javascripts/services/tree_cache.js index 939597e06..077c7996d 100644 --- a/src/public/javascripts/services/tree_cache.js +++ b/src/public/javascripts/services/tree_cache.js @@ -158,7 +158,11 @@ class TreeCache { return; } - treeCache.childParentToBranch[childNoteId + '-' + newParentNoteId] = treeCache.childParentToBranch[childNoteId + '-' + oldParentNoteId]; + const branchId = treeCache.childParentToBranch[childNoteId + '-' + oldParentNoteId]; + const branch = await this.getBranch(branchId); + branch.parentNoteId = newParentNoteId; + + treeCache.childParentToBranch[childNoteId + '-' + newParentNoteId] = branchId; delete treeCache.childParentToBranch[childNoteId + '-' + oldParentNoteId]; // this is correct because we know that oldParentId isn't same as newParentId // remove old associations diff --git a/src/public/stylesheets/desktop.css b/src/public/stylesheets/desktop.css index a96de8003..9502838a6 100644 --- a/src/public/stylesheets/desktop.css +++ b/src/public/stylesheets/desktop.css @@ -60,7 +60,7 @@ display: flex; justify-content: space-around; padding: 10px 0 10px 0; - margin: 0 10px 0 10px; + margin: 0 20px 0 10px; border: 1px solid #ddd; border-radius: 5px; }