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:
parent
651637ba9e
commit
19e24c7406
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user