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;
|
||||
filter: grayscale(0.7);
|
||||
|
||||
&.contextMenuAvailable {
|
||||
cursor: context-menu;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&:not(.active) {
|
||||
box-shadow: none;
|
||||
|
||||
@ -95,7 +95,7 @@ export const HotbarIcon = observer(({menuItems = [], size = 40, ...props}: Hotba
|
||||
};
|
||||
|
||||
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">
|
||||
<div id={id}>
|
||||
{renderIcon()}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user