1
0
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:
Sebastian Malton 2021-06-28 10:57:33 -04:00
parent f5674dc76f
commit af0fd4cbae
2 changed files with 5 additions and 1 deletions

View File

@ -49,6 +49,10 @@
cursor: default;
filter: grayscale(0.7);
&.contextMenuAvailable {
cursor: context-menu;
}
&:hover {
&:not(.active) {
box-shadow: none;

View File

@ -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()}