mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	separated some context menu items into "advanced"
This commit is contained in:
		| @@ -1,6 +1,5 @@ | |||||||
| import server from "./server.js"; | import server from "./server.js"; | ||||||
| import utils from "./utils.js"; | import utils from "./utils.js"; | ||||||
| import tree from "./tree.js"; |  | ||||||
|  |  | ||||||
| class KeyboardAction { | class KeyboardAction { | ||||||
| 	constructor(params) { | 	constructor(params) { | ||||||
|   | |||||||
| @@ -85,10 +85,11 @@ class TreeContextMenu { | |||||||
|                 enabled: notSearch && noSelectedNotes }, |                 enabled: notSearch && noSelectedNotes }, | ||||||
|             { title: "Import into note", cmd: "importIntoNote", uiIcon: "empty", |             { title: "Import into note", cmd: "importIntoNote", uiIcon: "empty", | ||||||
|                 enabled: notSearch && noSelectedNotes }, |                 enabled: notSearch && noSelectedNotes }, | ||||||
|             { title: "----" }, |             { title: "Advanced", uiIcon: "empty", enabled: true, items: [ | ||||||
|                     { title: 'Collapse subtree <kbd data-kb-action="CollapseSubtree"></kbd>', cmd: "collapseSubtree", uiIcon: "align-justify", enabled: noSelectedNotes }, |                     { title: 'Collapse subtree <kbd data-kb-action="CollapseSubtree"></kbd>', cmd: "collapseSubtree", uiIcon: "align-justify", enabled: noSelectedNotes }, | ||||||
|                     { title: "Force note sync", cmd: "forceNoteSync", uiIcon: "recycle", enabled: noSelectedNotes }, |                     { title: "Force note sync", cmd: "forceNoteSync", uiIcon: "recycle", enabled: noSelectedNotes }, | ||||||
|                     { title: 'Sort alphabetically <kbd data-kb-action="SortChildNotes"></kbd>', cmd: "sortAlphabetically", uiIcon: "empty", enabled: noSelectedNotes && notSearch } |                     { title: 'Sort alphabetically <kbd data-kb-action="SortChildNotes"></kbd>', cmd: "sortAlphabetically", uiIcon: "empty", enabled: noSelectedNotes && notSearch } | ||||||
|  |                 ] }, | ||||||
|         ].filter(row => row !== null); |         ].filter(row => row !== null); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -119,6 +119,7 @@ li.dropdown-submenu:hover > ul.dropdown-menu { | |||||||
|     top: 0; |     top: 0; | ||||||
|     left: 100%; |     left: 100%; | ||||||
|     margin-top: -6px; |     margin-top: -6px; | ||||||
|  |     min-width: 15rem; | ||||||
| } | } | ||||||
|  |  | ||||||
| /* rotate caret on hover */ | /* rotate caret on hover */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user