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:
1 parent
f5674dc76f
commit
af0fd4cbae
2 files changed
+5
-1
No files matched your search
@@ -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()}
|
||||||
|
|||||||
Reference in new issue
Block a user