Set avatar backgrounds from entity

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

No files matched your search

@@ -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}>
@@ -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}
@@ -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}>