From d418d7b9c7e1ea7806c1d08dab95b8e3c4fd408f Mon Sep 17 00:00:00 2001 From: David Weber Date: Sat, 24 Aug 2024 23:51:08 +0200 Subject: [PATCH] fix: fix icon size --- .changeset/beige-melons-notice.md | 5 +++++ plugins/simple-icons/src/entityPresentationApi.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/beige-melons-notice.md diff --git a/.changeset/beige-melons-notice.md b/.changeset/beige-melons-notice.md new file mode 100644 index 0000000..5edc6fa --- /dev/null +++ b/.changeset/beige-melons-notice.md @@ -0,0 +1,5 @@ +--- +'@dweber019/backstage-plugin-simple-icons': patch +--- + +Fix size of icons. diff --git a/plugins/simple-icons/src/entityPresentationApi.ts b/plugins/simple-icons/src/entityPresentationApi.ts index 1ceed0d..db3b0f9 100644 --- a/plugins/simple-icons/src/entityPresentationApi.ts +++ b/plugins/simple-icons/src/entityPresentationApi.ts @@ -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];