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

Set avatar backgrounds from entity

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2023-03-16 15:57:32 +03:00
parent f194657bd6
commit 825c83e935
3 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,7 @@ const NonInjectedCatalogEntitySettings = observer((props: CatalogEntitySettingsP
colorHash={`${entity.getName()}-${entity.metadata.source}`}
src={entity.spec.icon?.src}
className={styles.settingsAvatar}
background={entity.spec.icon?.background}
size={40}
/>
<div className={styles.entityName}>

View File

@ -67,6 +67,7 @@ const NonInjectedClusterIconSetting = observer((props: ClusterIconSettingProps &
title={entity.getName()}
src={entity.spec.icon?.src}
size={53}
background={entity.spec.icon?.background}
/>
)}
onOverSizeLimit={OverSizeLimitStyle.FILTER}

View File

@ -111,6 +111,7 @@ const NonInjectedSidebarCluster = observer(({
colorHash={`${clusterEntity.getName()}-${clusterEntity.metadata.source}`}
size={40}
src={clusterEntity.spec.icon?.src}
background={clusterEntity.spec.icon?.background}
className={styles.avatar}
/>
<div className={styles.clusterName} id={tooltipId}>