mirror of
https://github.com/logseq/logseq.git
synced 2026-05-26 13:44:13 +00:00
style: context menu component
This commit is contained in:
@@ -30,7 +30,7 @@ export const ContextMenu = observer(function ContextMenu({
|
||||
<ReactContextMenu.Content
|
||||
className="tl-context-menu"
|
||||
ref={rContent}
|
||||
onEscapeKeyDown={()=> app.transition('select')}
|
||||
onEscapeKeyDown={() => app.transition('select')}
|
||||
collisionBoundary={collisionRef.current}
|
||||
asChild
|
||||
tabIndex={-1}
|
||||
@@ -38,7 +38,10 @@ export const ContextMenu = observer(function ContextMenu({
|
||||
<div>
|
||||
{app.selectedShapes?.size > 0 && (
|
||||
<>
|
||||
<ReactContextMenu.Item className="tl-context-menu-button" onClick={() => runAndTransition(app.copy)}>
|
||||
<ReactContextMenu.Item
|
||||
className="tl-context-menu-button"
|
||||
onClick={() => runAndTransition(app.copy)}
|
||||
>
|
||||
Copy
|
||||
<div className="tl-context-menu-right-slot">
|
||||
<span className="keyboard-shortcut">
|
||||
@@ -48,7 +51,10 @@ export const ContextMenu = observer(function ContextMenu({
|
||||
</ReactContextMenu.Item>
|
||||
</>
|
||||
)}
|
||||
<ReactContextMenu.Item className="tl-context-menu-button" onClick={() => runAndTransition(app.paste)}>
|
||||
<ReactContextMenu.Item
|
||||
className="tl-context-menu-button"
|
||||
onClick={() => runAndTransition(app.paste)}
|
||||
>
|
||||
Paste
|
||||
<div className="tl-context-menu-right-slot">
|
||||
<span className="keyboard-shortcut">
|
||||
|
||||
Reference in New Issue
Block a user