Skip to content

Commit

Permalink
fix: fix icon size
Browse files Browse the repository at this point in the history
  • Loading branch information
dweber019 committed Aug 24, 2024
1 parent f549958 commit d418d7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/beige-melons-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dweber019/backstage-plugin-simple-icons': patch
---

Fix size of icons.
2 changes: 1 addition & 1 deletion plugins/simple-icons/src/entityPresentationApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class SimpleIconsEntityPresentationApi implements EntityPresentationApi {
return icon.slug === annotation;
}).map(key => {
const icon = (icons as any)[key] as SimpleIcon;
return createIcon(icon, this.color, { fontSize: 'inherit' });
return createIcon(icon, this.color, { fontSize: 'inherit', width: 17, height: 17, y: 10, x: 10 });
});
if (simpleIcons.length > 0) {
return simpleIcons[0];
Expand Down

0 comments on commit d418d7b

Please sign in to comment.