Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8dee7b8

Browse files
committed
fix: fiz size for non squared app icons
1 parent 544259b commit 8dee7b8

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)