mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Replacing <Avatar/> component by native one (#4452)
This commit is contained in:
1 parent
80eeffc229
commit
9ce91884c2
19 files changed
+337
-261
No files matched your search
@@ -27,4 +27,8 @@
|
||||
/* Simulate text-overflow:ellipsis styles but for multiple text lines */
|
||||
-webkit-line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
|
||||
.settingsAvatar {
|
||||
margin: 0 10px;
|
||||
}
|
||||
@@ -33,8 +33,8 @@ import { EntitySettingRegistry } from "../../../extensions/registries";
|
||||
import type { EntitySettingsRouteParams } from "../../../common/routes";
|
||||
import { groupBy } from "lodash";
|
||||
import { SettingLayout } from "../layout/setting-layout";
|
||||
import { HotbarIcon } from "../hotbar/hotbar-icon";
|
||||
import logger from "../../../common/logger";
|
||||
import { Avatar } from "../avatar";
|
||||
|
||||
interface Props extends RouteComponentProps<EntitySettingsRouteParams> {
|
||||
}
|
||||
@@ -96,11 +96,12 @@ export class EntitySettings extends React.Component<Props> {
|
||||
return (
|
||||
<>
|
||||
<div className="flex items-center pb-8">
|
||||
<HotbarIcon
|
||||
uid={this.entity.metadata.uid}
|
||||
<Avatar
|
||||
title={this.entity.metadata.name}
|
||||
source={this.entity.metadata.source}
|
||||
colorHash={`${this.entity.metadata.name}-${this.entity.metadata.source}`}
|
||||
src={this.entity.spec.icon?.src}
|
||||
className={styles.settingsAvatar}
|
||||
size={40}
|
||||
/>
|
||||
<div className={styles.entityName}>
|
||||
{this.entity.metadata.name}
|
||||
|
||||
Reference in new issue
Block a user