Content-Length: 1910 | pFad | http://github.com/coder/coder/pull/17669.patch
thub.com
From b681e67fb3b542975215194f1354a0c5d953d1f1 Mon Sep 17 00:00:00 2001
From: Bruno Quaresma
Date: Mon, 5 May 2025 12:05:03 +0000
Subject: [PATCH] fix: fix size for non-squared app icons (#17663)
**Before:**

**After:**
---
site/src/modules/resources/AgentButton.tsx | 3 ++-
.../modules/resources/AppLink/AppLink.stories.tsx | 13 +++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/site/src/modules/resources/AgentButton.tsx b/site/src/modules/resources/AgentButton.tsx
index 580358abdd73d..2f772e4f8e0ca 100644
--- a/site/src/modules/resources/AgentButton.tsx
+++ b/site/src/modules/resources/AgentButton.tsx
@@ -19,7 +19,8 @@ export const AgentButton = forwardRef(
"& .MuiButton-startIcon, & .MuiButton-endIcon": {
width: 16,
height: 16,
- "& svg": { width: "100%", height: "100%" },
+
+ "& svg, & img": { width: "100%", height: "100%" },
},
})}
>
diff --git a/site/src/modules/resources/AppLink/AppLink.stories.tsx b/site/src/modules/resources/AppLink/AppLink.stories.tsx
index db6fbf02c69da..94cb0e2010b66 100644
--- a/site/src/modules/resources/AppLink/AppLink.stories.tsx
+++ b/site/src/modules/resources/AppLink/AppLink.stories.tsx
@@ -62,6 +62,19 @@ export const WithIcon: Story = {
},
};
+export const WithNonSquaredIcon: Story = {
+ args: {
+ workspace: MockWorkspace,
+ app: {
+ ...MockWorkspaceApp,
+ icon: "/icon/windsurf.svg",
+ sharing_level: "owner",
+ health: "healthy",
+ },
+ agent: MockWorkspaceAgent,
+ },
+};
+
export const ExternalApp: Story = {
args: {
workspace: MockWorkspace,
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/coder/coder/pull/17669.patch
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy