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;
|
border: 1px solid #bcbcbc;
|
||||||
}
|
}
|
||||||
|
|
||||||
.context-menu__option {
|
|
||||||
width: 9.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.context-menu-option {
|
.context-menu-option {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
min-width: 9.5rem;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
padding: 0.25rem 1rem 0.25rem 1.25rem;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
padding-left: 1.25rem;
|
|
||||||
background-color: #f2f2f2;
|
background-color: #f2f2f2;
|
||||||
border: none;
|
border: none;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.context-menu-option:hover {
|
.context-menu-option:hover {
|
||||||
|
@ -26,11 +26,7 @@ function ContextMenu({ options, onCloseRequest, top, left }: Props) {
|
|||||||
>
|
>
|
||||||
<ul className="context-menu" onContextMenu={e => e.preventDefault()}>
|
<ul className="context-menu" onContextMenu={e => e.preventDefault()}>
|
||||||
{options.map((option, idx) => (
|
{options.map((option, idx) => (
|
||||||
<li
|
<li key={idx} onClick={onCloseRequest}>
|
||||||
key={idx}
|
|
||||||
className="context-menu__option"
|
|
||||||
onClick={onCloseRequest}
|
|
||||||
>
|
|
||||||
<ContextMenuOption {...option} />
|
<ContextMenuOption {...option} />
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user