mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-11-02 05:51:30 +08:00
Improve the sub-menu arrows for the tree context menu
This commit is contained in:
parent
35faba2c2f
commit
4179f9c155
@ -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());
|
||||
|
||||
@ -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 },
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user