From 19e24c7406aad3e322d8dff4ab526f69672a13be Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Tue, 15 Jun 2021 21:43:54 +0300 Subject: [PATCH] fix borders Signed-off-by: Jari Kolehmainen --- src/renderer/components/hotbar/hotbar-icon.scss | 11 +++++++++++ src/renderer/components/hotbar/hotbar-icon.tsx | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/hotbar/hotbar-icon.scss b/src/renderer/components/hotbar/hotbar-icon.scss index a69d4d689d..9e3451ab94 100644 --- a/src/renderer/components/hotbar/hotbar-icon.scss +++ b/src/renderer/components/hotbar/hotbar-icon.scss @@ -114,5 +114,16 @@ img { padding: 3px; + border-radius: 6px; + + &.active { + box-shadow: 0 0 0px 3px var(--clusterMenuBackground), 0 0 0px 6px var(--textColorAccent); + } + + &:hover { + &:not(.active) { + box-shadow: 0 0 0px 3px var(--clusterMenuBackground), 0 0 0px 6px #ffffff50; + } + } } } diff --git a/src/renderer/components/hotbar/hotbar-icon.tsx b/src/renderer/components/hotbar/hotbar-icon.tsx index 2f1cb34c46..0ee8f2ddc8 100644 --- a/src/renderer/components/hotbar/hotbar-icon.tsx +++ b/src/renderer/components/hotbar/hotbar-icon.tsx @@ -72,7 +72,12 @@ export const HotbarIcon = observer(({menuItems = [], size = 40, ...props}: Hotba const renderIcon = () => { if (icon) { - return ; + return ; } else { return