From af0fd4cbae8cdc684eccede4f20d4efe70f432d9 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Mon, 28 Jun 2021 10:57:33 -0400 Subject: [PATCH] Add cursor context-menu Signed-off-by: Sebastian Malton --- src/renderer/components/hotbar/hotbar-icon.scss | 4 ++++ src/renderer/components/hotbar/hotbar-icon.tsx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/hotbar/hotbar-icon.scss b/src/renderer/components/hotbar/hotbar-icon.scss index 57c5ed8928..225a054011 100644 --- a/src/renderer/components/hotbar/hotbar-icon.scss +++ b/src/renderer/components/hotbar/hotbar-icon.scss @@ -49,6 +49,10 @@ cursor: default; filter: grayscale(0.7); + &.contextMenuAvailable { + cursor: context-menu; + } + &:hover { &:not(.active) { box-shadow: none; diff --git a/src/renderer/components/hotbar/hotbar-icon.tsx b/src/renderer/components/hotbar/hotbar-icon.tsx index dff8555d2c..b739fa2b4c 100644 --- a/src/renderer/components/hotbar/hotbar-icon.tsx +++ b/src/renderer/components/hotbar/hotbar-icon.tsx @@ -95,7 +95,7 @@ export const HotbarIcon = observer(({menuItems = [], size = 40, ...props}: Hotba }; return ( -
+
0 })}>
{renderIcon()}