mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Adjust context menu and use open colors (#553)
* Adjust context menu and use open colors * word wrap * revert colors & padding Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
parent
e4ff408f23
commit
3901ad7dbe
2 changed files with 4 additions and 10 deletions
|
@ -26,11 +26,7 @@ function ContextMenu({ options, onCloseRequest, top, left }: Props) {
|
|||
>
|
||||
<ul className="context-menu" onContextMenu={e => e.preventDefault()}>
|
||||
{options.map((option, idx) => (
|
||||
<li
|
||||
key={idx}
|
||||
className="context-menu__option"
|
||||
onClick={onCloseRequest}
|
||||
>
|
||||
<li key={idx} onClick={onCloseRequest}>
|
||||
<ContextMenuOption {...option} />
|
||||
</li>
|
||||
))}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue