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
@ -11,19 +11,17 @@
|
||||
border: 1px solid #bcbcbc;
|
||||
}
|
||||
|
||||
.context-menu__option {
|
||||
width: 9.5rem;
|
||||
}
|
||||
|
||||
.context-menu-option {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
min-width: 9.5rem;
|
||||
margin: 0;
|
||||
padding: 0.25rem 1rem 0.25rem 1.25rem;
|
||||
text-align: left;
|
||||
border-radius: 0;
|
||||
padding-left: 1.25rem;
|
||||
background-color: #f2f2f2;
|
||||
border: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.context-menu-option:hover {
|
||||
|
@ -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…
x
Reference in New Issue
Block a user