mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add cursor context-menu
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
f5674dc76f
commit
af0fd4cbae
@ -49,6 +49,10 @@
|
|||||||
cursor: default;
|
cursor: default;
|
||||||
filter: grayscale(0.7);
|
filter: grayscale(0.7);
|
||||||
|
|
||||||
|
&.contextMenuAvailable {
|
||||||
|
cursor: context-menu;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
&:not(.active) {
|
&:not(.active) {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
|||||||
@ -95,7 +95,7 @@ export const HotbarIcon = observer(({menuItems = [], size = 40, ...props}: Hotba
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={cssNames("HotbarIcon flex", className, { disabled })}>
|
<div className={cssNames("HotbarIcon flex", className, { disabled, contextMenuAvailable: menuItems.length > 0 })}>
|
||||||
<MaterialTooltip title={`${title || "unknown"} (${source || "unknown"})`} placement="right">
|
<MaterialTooltip title={`${title || "unknown"} (${source || "unknown"})`} placement="right">
|
||||||
<div id={id}>
|
<div id={id}>
|
||||||
{renderIcon()}
|
{renderIcon()}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user