mirror of
https://github.com/zadam/trilium.git
synced 2024-12-26 17:21:23 +08:00
making dialogs wider to accompany deeper hierarchies. Recent changes now display full path of the note
This commit is contained in:
parent
a363b43c2b
commit
4a4228cd03
5 changed files with 13 additions and 11 deletions
|
@ -91,7 +91,7 @@
|
|||
</div>
|
||||
|
||||
<div id="recent-notes-dialog" title="Recent notes" style="display: none;">
|
||||
<select id="recent-notes-select-box" size="15" style="width: 100%">
|
||||
<select id="recent-notes-select-box" size="20" style="width: 100%">
|
||||
</select>
|
||||
|
||||
<br/><br/>
|
||||
|
|
|
@ -3,7 +3,7 @@ function showJumpToNote() {
|
|||
|
||||
$("#jump-to-note-dialog").dialog({
|
||||
modal: true,
|
||||
width: 500
|
||||
width: 800
|
||||
});
|
||||
|
||||
$("#jump-to-note-autocomplete").autocomplete({
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function showRecentChanges() {
|
||||
$("#recent-changes-dialog").dialog({
|
||||
modal: true,
|
||||
width: 400,
|
||||
width: 800,
|
||||
height: 700
|
||||
});
|
||||
|
||||
|
@ -13,13 +13,11 @@ function showRecentChanges() {
|
|||
const dayCache = {};
|
||||
|
||||
for (const row of result) {
|
||||
if (row.encryption > 0) {
|
||||
if (isEncryptionAvailable()) {
|
||||
row.note_title = decryptString(row.note_title);
|
||||
}
|
||||
else {
|
||||
row.note_title = "[encrypted]";
|
||||
}
|
||||
if (row.encryption > 0 && !isEncryptionAvailable()) {
|
||||
row.note_title = "[encrypted]";
|
||||
}
|
||||
else {
|
||||
row.note_title = getFullName(row.note_id);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ function showRecentNotes() {
|
|||
|
||||
$("#recent-notes-dialog").dialog({
|
||||
modal: true,
|
||||
width: 500
|
||||
width: 800
|
||||
});
|
||||
|
||||
let recentNotesSelectBox = $('#recent-notes-select-box');
|
||||
|
|
|
@ -28,6 +28,10 @@ function getNoteTitle(noteId) {
|
|||
function getFullName(noteId) {
|
||||
let note = getNodeByKey(noteId);
|
||||
|
||||
if (note === null) {
|
||||
return "[unknown]";
|
||||
}
|
||||
|
||||
if (note.data.is_clone || (note.data.encryption > 0 && !isEncryptionAvailable())) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue