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

Making avatar a bit more rounded

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-11-30 10:19:54 +03:00
parent ab31bce72d
commit 6ccb26abe5
3 changed files with 7 additions and 3 deletions

View File

@ -42,7 +42,7 @@
}
.rounded {
border-radius: var(--border-radius);
border-radius: 4px;
}
.disabled {

View File

@ -26,7 +26,7 @@
display: flex;
cursor: pointer;
position: relative;
border-radius: var(--border-radius);
border-radius: 6px;
transition: box-shadow 0.1s ease-in-out;
&:not(.active):hover {
@ -38,6 +38,10 @@
cursor: context-menu;
}
.avatar {
border-radius: 6px;
}
.active {
box-shadow: var(--iconActiveShadow);
}

View File

@ -77,7 +77,7 @@ export const HotbarIcon = observer(({ menuItems = [], size = 40, tooltip, ...pro
id={id}
title={title}
colorHash={`${title}-${source}`}
className={cssNames({ [styles.active]: active })}
className={cssNames(styles.avatar, { [styles.active]: active })}
disabled={disabled}
size={size}
src={src}