Enhance context menu (#8930)

* replace duplicate code

* only select current block during open contxt menu & fix issue 7689

* change unnecessary mixin function to value

* add bgcolor to custom context menu

* add collapse/expand to custom context menu

* remove redundant code

* fix misdirected comment

* add make card to custom context menu

* add heading to custom context menu

* Merge branch 'master' into enhance/context-menu

* fix undo heading need multiple times

* Revert "Merge branch 'master' into enhance/context-menu"

This reverts commit d4222db6bb.

* fix: lint

* fix heading case logically incorrect

* format code

---------

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
This commit is contained in:
megayu
2023-04-03 12:59:59 +08:00
committed by GitHub
parent edb3ad48a0
commit 81c1397106
12 changed files with 239 additions and 85 deletions

View File

@@ -32,7 +32,7 @@
[:code.opacity-20.bg-transparent (:id result)]])]))
(rum/defcs select < rum/reactive
(shortcut/disable-all-shortcuts)
shortcut/disable-all-shortcuts
(rum/local "" ::input)
{:init (fn [state]
(assoc state ::selected-choices