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

+2-1
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

+13
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)