1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

fix borders

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-06-15 21:43:54 +03:00
parent 651637ba9e
commit 19e24c7406
2 changed files with 17 additions and 1 deletions

View File

@ -114,5 +114,16 @@
img { img {
padding: 3px; 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;
}
}
} }
} }

View File

@ -72,7 +72,12 @@ export const HotbarIcon = observer(({menuItems = [], size = 40, ...props}: Hotba
const renderIcon = () => { const renderIcon = () => {
if (icon) { if (icon) {
return <img src={icon} width={size} height={size} />; return <img
{...rest}
src={icon}
className={active ? "active" : "default"}
width={size}
height={size} />;
} else { } else {
return <Avatar return <Avatar
{...rest} {...rest}