mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
added note scoped actions button, fix #8
This commit is contained in:
parent
f42835e083
commit
32db96f388
@ -87,7 +87,7 @@ const contextMenu = (function() {
|
|||||||
{title: "----"},
|
{title: "----"},
|
||||||
{title: "Collapse sub-tree <kbd>Alt+-</kbd>", cmd: "collapse-sub-tree", uiIcon: "ui-icon-minus"},
|
{title: "Collapse sub-tree <kbd>Alt+-</kbd>", cmd: "collapse-sub-tree", uiIcon: "ui-icon-minus"},
|
||||||
{title: "Force note sync", cmd: "force-note-sync", uiIcon: "ui-icon-refresh"},
|
{title: "Force note sync", cmd: "force-note-sync", uiIcon: "ui-icon-refresh"},
|
||||||
{title: "Sort alphabetically <kbd>Alt+s</kbd>", cmd: "sort-alphabetically", uiIcon: " ui-icon-arrowthick-2-n-s"}
|
{title: "Sort alphabetically <kbd>Alt+S</kbd>", cmd: "sort-alphabetically", uiIcon: " ui-icon-arrowthick-2-n-s"}
|
||||||
|
|
||||||
],
|
],
|
||||||
beforeOpen: (event, ui) => {
|
beforeOpen: (event, ui) => {
|
||||||
|
@ -200,3 +200,25 @@ div.ui-tooltip {
|
|||||||
.suppressed {
|
.suppressed {
|
||||||
filter: opacity(7%);
|
filter: opacity(7%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dropdown-menu li {
|
||||||
|
padding: 5px;
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-menu li:hover, .dropdown-menu a:hover {
|
||||||
|
background-color: #eee !important;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-menu kbd
|
||||||
|
{
|
||||||
|
color: black;
|
||||||
|
border: none;
|
||||||
|
background-color: transparent;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-menu kbd {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
@ -95,7 +95,19 @@
|
|||||||
|
|
||||||
<span id="note-id-display" title="Note ID"></span>
|
<span id="note-id-display" title="Note ID"></span>
|
||||||
|
|
||||||
<button class="btn btn-xs" title="ALT+H" style="margin: 10px;" onclick="noteHistory.showCurrentNoteHistory();">Note history</button>
|
<div class="dropdown" style="margin-left: 10px; margin-right: 10px;">
|
||||||
|
<button id="dLabel" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn btn-xs">
|
||||||
|
Note actions
|
||||||
|
<span class="caret"></span>
|
||||||
|
</button>
|
||||||
|
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dLabel">
|
||||||
|
<li><a onclick="noteHistory.showCurrentNoteHistory();"><kbd>Alt+H</kbd> History</a></li>
|
||||||
|
<li><a onclick="attributesDialog.showDialog();"><kbd>Alt+A</kbd> Attributes</a></li>
|
||||||
|
<li><a onclick="noteSource.showDialog();"><kbd>Ctrl+U</kbd> HTML source</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!--<button class="btn btn-xs" title="ALT+H" onclick="noteHistory.showCurrentNoteHistory();">Note history</button>-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user