mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
some visual tweaks
This commit is contained in:
parent
0d3b3ec7c5
commit
baab745462
@ -13,7 +13,7 @@ const editTreePrefix = (function() {
|
|||||||
|
|
||||||
await dialogEl.dialog({
|
await dialogEl.dialog({
|
||||||
modal: true,
|
modal: true,
|
||||||
width: 800
|
width: 500
|
||||||
});
|
});
|
||||||
|
|
||||||
const currentNode = noteTree.getCurrentNode();
|
const currentNode = noteTree.getCurrentNode();
|
||||||
|
@ -29,7 +29,7 @@ const noteHistory = (function() {
|
|||||||
for (const item of historyItems) {
|
for (const item of historyItems) {
|
||||||
const dateModified = parseDate(item.date_modified_from);
|
const dateModified = parseDate(item.date_modified_from);
|
||||||
|
|
||||||
$("#note-history-list").append($('<option>', {
|
listEl.append($('<option>', {
|
||||||
value: item.note_history_id,
|
value: item.note_history_id,
|
||||||
text: formatDateTime(dateModified)
|
text: formatDateTime(dateModified)
|
||||||
}));
|
}));
|
||||||
@ -42,6 +42,9 @@ const noteHistory = (function() {
|
|||||||
|
|
||||||
listEl.val(noteHistoryId).trigger('change');
|
listEl.val(noteHistoryId).trigger('change');
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
titleEl.text("No history for this note yet...");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).bind('keydown', 'alt+h', e => {
|
$(document).bind('keydown', 'alt+h', e => {
|
||||||
|
@ -52,7 +52,7 @@ const treeChanges = (function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function deleteNode(node) {
|
async function deleteNode(node) {
|
||||||
if (!confirm('Are you sure you want to delete note "' + node.title + '"?')) {
|
if (!confirm('Are you sure you want to delete note "' + node.title + '" and all its sub-notes?')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,6 +83,8 @@ const treeChanges = (function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
noteTree.reload();
|
noteTree.reload();
|
||||||
|
|
||||||
|
showMessage("Note has been deleted.");
|
||||||
}
|
}
|
||||||
|
|
||||||
async function moveNodeUpInHierarchy(node) {
|
async function moveNodeUpInHierarchy(node) {
|
||||||
|
@ -168,8 +168,7 @@ div.ui-tooltip {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Allow to use <kbd> elements inside the title to define shortcut hints. */
|
/* Allow to use <kbd> elements inside the title to define shortcut hints. */
|
||||||
.ui-menu kbd {
|
.ui-menu kbd, button kbd {
|
||||||
margin-left: 30px;
|
|
||||||
float: right;
|
float: right;
|
||||||
color: black;
|
color: black;
|
||||||
border: none;
|
border: none;
|
||||||
@ -177,6 +176,10 @@ div.ui-tooltip {
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ui-menu kbd {
|
||||||
|
margin-left: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
#note-id-display {
|
#note-id-display {
|
||||||
color: lightgrey;
|
color: lightgrey;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
@ -97,7 +97,7 @@
|
|||||||
|
|
||||||
<span id="note-id-display" title="Note ID"></span>
|
<span id="note-id-display" title="Note ID"></span>
|
||||||
|
|
||||||
<button class="btn btn-xs" style="margin: 10px;" onclick="noteHistory.showCurrentNoteHistory();">Note history</button>
|
<button class="btn btn-xs" title="ALT+H" style="margin: 10px;" onclick="noteHistory.showCurrentNoteHistory();">Note history</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -113,13 +113,13 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<button class="btn btn-sm" id="recent-notes-jump-to">Jump to (enter)</button>
|
<button class="btn btn-sm" id="recent-notes-jump-to">Jump to <kbd>enter</kbd></button>
|
||||||
|
|
||||||
<button class="btn btn-sm" id="recent-notes-add-link">Add link (l)</button>
|
<button class="btn btn-sm" id="recent-notes-add-link">Add link <kbd>l</kbd></button>
|
||||||
|
|
||||||
<button class="btn btn-sm" id="recent-notes-add-current-as-child">Add current as child (c)</button>
|
<button class="btn btn-sm" id="recent-notes-add-current-as-child">Add current as child <kbd>c</kbd></button>
|
||||||
|
|
||||||
<button class="btn btn-sm" id="recent-notes-add-recent-as-child">Add recent as child (r)</button>
|
<button class="btn btn-sm" id="recent-notes-add-recent-as-child">Add recent as child <kbd>r</kbd></button>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -165,7 +165,7 @@
|
|||||||
<input id="jump-to-note-autocomplete" style="width: 100%;">
|
<input id="jump-to-note-autocomplete" style="width: 100%;">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button name="action" value="jump" class="btn btn-sm">Jump (enter)</button>
|
<button name="action" value="jump" class="btn btn-sm">Jump <kbd>enter</kbd></button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -176,7 +176,7 @@
|
|||||||
<input id="protected-session-password" class="form-control" type="password">
|
<input id="protected-session-password" class="form-control" type="password">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button class="btn btn-sm">Enter protected session</button>
|
<button class="btn btn-sm">Enter protected session <kbd>enter</kbd></button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -318,7 +318,7 @@
|
|||||||
|
|
||||||
<div id="sql-console-dialog" title="SQL console" style="display: none; padding: 20px;">
|
<div id="sql-console-dialog" title="SQL console" style="display: none; padding: 20px;">
|
||||||
<textarea style="width: 100%; height: 100px" id="sql-console-query"></textarea>
|
<textarea style="width: 100%; height: 100px" id="sql-console-query"></textarea>
|
||||||
<button class="btn btn-danger" id="sql-console-execute">Execute</button>
|
<button class="btn btn-danger" id="sql-console-execute">Execute <kbd>CTRL+ENTER</kbd></button>
|
||||||
|
|
||||||
<table id="sql-console-results" class="table table-striped" style="overflow: scroll; width: 100%;">
|
<table id="sql-console-results" class="table table-striped" style="overflow: scroll; width: 100%;">
|
||||||
<thead></thead>
|
<thead></thead>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user