mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: fix size for non-squared app icons (#17663)
**Before:**  **After:** <img width="192" alt="Screenshot 2025-05-02 at 14 36 19" src="https://github.com/user-attachments/assets/59cb4531-06fd-44bc-b4b9-4441f2dce79a" />
This commit is contained in:
@@ -19,7 +19,8 @@ export const AgentButton = forwardRef<HTMLButtonElement, ButtonProps>(
|
||||
"& .MuiButton-startIcon, & .MuiButton-endIcon": {
|
||||
width: 16,
|
||||
height: 16,
|
||||
"& svg": { width: "100%", height: "100%" },
|
||||
|
||||
"& svg, & img": { width: "100%", height: "100%" },
|
||||
},
|
||||
})}
|
||||
>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user