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

fix styles

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-04-23 11:44:09 +03:00
parent 2b54470c40
commit 1c3ab946a6
2 changed files with 5 additions and 4 deletions

View File

@ -38,7 +38,7 @@
} }
} }
.Icon { .badge {
color: $textColorAccent; color: $textColorAccent;
position: absolute; position: absolute;
right: 0; right: 0;

View File

@ -57,16 +57,17 @@ export class HotbarIcon extends React.Component<Props> {
} }
get badgeIcon() { get badgeIcon() {
const className = "badge";
const category = catalogCategoryRegistry.getCategoryForEntity(this.props.entity); const category = catalogCategoryRegistry.getCategoryForEntity(this.props.entity);
if (!category) { if (!category) {
return <Icon material="bug_report" />; return <Icon material="bug_report" className={className} />;
} }
if (category.metadata.icon.includes("<svg")) { if (category.metadata.icon.includes("<svg")) {
return <Icon svg={category.metadata.icon} />; return <Icon svg={category.metadata.icon} className={className} />;
} else { } else {
return <Icon material={category.metadata.icon} />; return <Icon material={category.metadata.icon} className={className} />;
} }
} }