diff --git a/src/public/javascripts/services/tree_context_menu.js b/src/public/javascripts/services/tree_context_menu.js index 8a3aeecda..3c1fd601a 100644 --- a/src/public/javascripts/services/tree_context_menu.js +++ b/src/public/javascripts/services/tree_context_menu.js @@ -112,9 +112,9 @@ async function getTopLevelItems(event) { { title: "Delete Delete", cmd: "delete", uiIcon: "trash", enabled: isNotRoot && parentNote.type !== 'search' }, { title: "----" }, - isHoisted ? null : { title: "Hoist note Ctrl-H", cmd: "hoist", uiIcon: "arrow-up" }, + isHoisted ? null : { title: "Hoist note Ctrl-H", cmd: "hoist", uiIcon: "empty" }, !isHoisted || !isNotRoot ? null : { title: "Unhoist note Ctrl-H", cmd: "unhoist", uiIcon: "arrow-up" }, - { title: "Edit branch prefix F2", cmd: "editBranchPrefix", uiIcon: "pencil", + { title: "Edit branch prefix F2", cmd: "editBranchPrefix", uiIcon: "empty", enabled: isNotRoot && parentNote.type !== 'search'}, { title: "----" }, { title: "Protect subtree", cmd: "protectSubtree", uiIcon: "shield-check" }, @@ -129,14 +129,14 @@ async function getTopLevelItems(event) { { title: "Paste after", cmd: "pasteAfter", uiIcon: "clipboard", enabled: clipboardIds.length > 0 && isNotRoot && parentNote.type !== 'search' }, { title: "----" }, - { title: "Export", cmd: "export", uiIcon: "arrow-up-right", + { title: "Export", cmd: "export", uiIcon: "empty", enabled: note.type !== 'search' }, - { title: "Import into note", cmd: "importIntoNote", uiIcon: "arrow-down-left", + { title: "Import into note", cmd: "importIntoNote", uiIcon: "empty", enabled: note.type !== 'search' }, { title: "----" }, { title: "Collapse subtree Alt+-", cmd: "collapseSubtree", uiIcon: "align-justify" }, { title: "Force note sync", cmd: "forceNoteSync", uiIcon: "refresh" }, - { title: "Sort alphabetically Alt+S", cmd: "sortAlphabetically", uiIcon: "arrows-v" } + { title: "Sort alphabetically Alt+S", cmd: "sortAlphabetically", uiIcon: "empty" } ].filter(row => row !== null); } diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index 453338d97..d6829ed31 100644 --- a/src/public/stylesheets/style.css +++ b/src/public/stylesheets/style.css @@ -928,4 +928,9 @@ a.external:after, a[href^="http://"]:after, a[href^="https://"]:after { .card { background-color: inherit !important; border-color: var(--main-border-color) !important; +} + +.jam-empty { + width: 1em; + display: inline-block; } \ No newline at end of file diff --git a/src/views/desktop.ejs b/src/views/desktop.ejs index 0d83ed2e6..636443894 100644 --- a/src/views/desktop.ejs +++ b/src/views/desktop.ejs @@ -61,32 +61,32 @@ Sync (0) - - - Show Help - F1 - - Open Dev Tools CTRL+SHIFT+I - - - Reload frontend - CTRL-R - - Open SQL Console ALT+O + + + Reload frontend + CTRL-R + + + + + Show Help + F1 + + - + About Trilium Notes