Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
Improve the sub-menu arrows for the tree context menu
Adorian Doran4179f9c15599
diff --git a/src/public/app/menus/context_menu.js b/src/public/app/menus/context_menu.jsindex 093803d5cb..16df2da282 100644--- a/src/public/app/menus/context_menu.js+++ b/src/public/app/menus/context_menu.js@@ -3,6 +3,7 @@ import keyboardActionService from '../services/keyboard_actions.js';class ContextMenu {constructor() {this.$widget = $("#context-menu-container");+ this.$widget.addClass("dropend");this.dateContextMenuOpenedMs = 0;$(document).on('click', () => this.hide());diff --git a/src/public/app/menus/tree_context_menu.js b/src/public/app/menus/tree_context_menu.jsindex 2e6d2dedc5..33d1314a88 100644--- a/src/public/app/menus/tree_context_menu.js+++ b/src/public/app/menus/tree_context_menu.js@@ -60,11 +60,11 @@ export default class TreeContextMenu {{ title: "----" },- { title: `${t("tree-context-menu.insert-note-after")} <kbd data-command="createNoteAfter"></kbd>`, command: "insertNoteAfter", uiIcon: "bx bx-plus",+ { title: `${t("tree-context-menu.insert-note-after")}<kbd data-command="createNoteAfter"></kbd>`, command: "insertNoteAfter", uiIcon: "bx bx-plus",items: insertNoteAfterEnabled ? await noteTypesService.getNoteTypeItems("insertNoteAfter") : null,enabled: insertNoteAfterEnabled && noSelectedNotes && notOptions },- { title: `${t("tree-context-menu.insert-child-note")} <kbd data-command="createNoteInto"></kbd>`, command: "insertChildNote", uiIcon: "bx bx-plus",+ { title: `${t("tree-context-menu.insert-child-note")}<kbd data-command="createNoteInto"></kbd>`, command: "insertChildNote", uiIcon: "bx bx-plus",items: notSearch ? await noteTypesService.getNoteTypeItems("insertChildNote") : null,enabled: notSearch && noSelectedNotes && notOptions },diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.cssindex 4abc0413a3..7edd58f7f9 100644--- a/src/public/stylesheets/style.css+++ b/src/public/stylesheets/style.css@@ -244,6 +244,11 @@ div.ui-tooltip {box-shadow: unset;}+.dropend .dropdown-toggle::after {+ margin-left: .5em;+ color: var(--muted-text-color);+}+.dropdown-menu .disabled {color: #888 !important;pointer-events: none;