Skip to content

Commit 816a4ed

Browse files
fix: fix size for non-squared app icons (cherry-pick #17663) (#17669)
Co-authored-by: Bruno Quaresma <bruno@coder.com> fix: fix size for non-squared app icons (#17663)
1 parent 70ea678 commit 816a4ed

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

site/src/modules/resources/AgentButton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ export const AgentButton = forwardRef<HTMLButtonElement, ButtonProps>(
1919
"& .MuiButton-startIcon, & .MuiButton-endIcon": {
2020
width: 16,
2121
height: 16,
22-
"& svg": { width: "100%", height: "100%" },
22+
23+
"& svg, & img": { width: "100%", height: "100%" },
2324
},
2425
})}
2526
>

site/src/modules/resources/AppLink/AppLink.stories.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,19 @@ export const WithIcon: Story = {
6262
},
6363
};
6464

65+
export const WithNonSquaredIcon: Story = {
66+
args: {
67+
workspace: MockWorkspace,
68+
app: {
69+
...MockWorkspaceApp,
70+
icon: "/icon/windsurf.svg",
71+
sharing_level: "owner",
72+
health: "healthy",
73+
},
74+
agent: MockWorkspaceAgent,
75+
},
76+
};
77+
6578
export const ExternalApp: Story = {
6679
args: {
6780
workspace: MockWorkspace,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy