mirror of
https://github.com/zadam/trilium.git
synced 2024-09-20 23:55:59 +08:00
small usability improvements
This commit is contained in:
parent
8eff18922c
commit
ccc7775c7c
|
@ -3,6 +3,7 @@
|
||||||
const noteTree = (function() {
|
const noteTree = (function() {
|
||||||
const treeEl = $("#tree");
|
const treeEl = $("#tree");
|
||||||
const parentListEl = $("#parent-list");
|
const parentListEl = $("#parent-list");
|
||||||
|
const parentListListEl = $("#parent-list-list");
|
||||||
|
|
||||||
let startNotePath = null;
|
let startNotePath = null;
|
||||||
let notesTreeMap = {};
|
let notesTreeMap = {};
|
||||||
|
@ -280,9 +281,7 @@ const noteTree = (function() {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
parentListEl.show();
|
parentListEl.show();
|
||||||
parentListEl.empty();
|
parentListListEl.empty();
|
||||||
|
|
||||||
const list = $("<ul/>");
|
|
||||||
|
|
||||||
for (const parentNoteId of parents) {
|
for (const parentNoteId of parents) {
|
||||||
const parentNotePath = getSomeNotePath(parentNoteId);
|
const parentNotePath = getSomeNotePath(parentNoteId);
|
||||||
|
@ -299,10 +298,8 @@ const noteTree = (function() {
|
||||||
item = link.createNoteLink(notePath, title);
|
item = link.createNoteLink(notePath, title);
|
||||||
}
|
}
|
||||||
|
|
||||||
list.append($("<li/>").append(item));
|
parentListListEl.append($("<li/>").append(item));
|
||||||
}
|
}
|
||||||
|
|
||||||
parentListEl.append(list);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="parent-list">
|
<div id="parent-list">
|
||||||
|
<p><strong>Note locations:</strong></p>
|
||||||
|
|
||||||
|
<ul id="parent-list-list"></ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="hide-toggle" style="grid-area: title;">
|
<div class="hide-toggle" style="grid-area: title;">
|
||||||
|
@ -90,7 +93,7 @@
|
||||||
|
|
||||||
<input autocomplete="off" value="" id="note-title" style="font-size: x-large; border: 0; flex-grow: 100;" tabindex="1">
|
<input autocomplete="off" value="" id="note-title" style="font-size: x-large; border: 0; flex-grow: 100;" tabindex="1">
|
||||||
|
|
||||||
<button class="btn btn-xs" onclick="noteHistory.showCurrentNoteHistory();">History</button>
|
<button class="btn btn-xs" style="margin-right: 10px;" onclick="noteHistory.showCurrentNoteHistory();">Note history</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue