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

Skip to content

Commit e4558e2

Browse files
fix: fix windsurf icon on light theme (cherry-pick #17679) (#17686)
Co-authored-by: Bruno Quaresma <[email protected]> fix: fix windsurf icon on light theme (#17679)
1 parent 816a4ed commit e4558e2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import ComputerIcon from "@mui/icons-material/Computer";
22
import type { WorkspaceApp } from "api/typesGenerated";
3+
import { ExternalImage } from "components/ExternalImage/ExternalImage";
34
import type { FC } from "react";
45

56
interface BaseIconProps {
@@ -9,7 +10,7 @@ interface BaseIconProps {
910

1011
export const BaseIcon: FC<BaseIconProps> = ({ app, onIconPathError }) => {
1112
return app.icon ? (
12-
<img
13+
<ExternalImage
1314
alt={`${app.display_name} Icon`}
1415
src={app.icon}
1516
style={{ pointerEvents: "none" }}

site/src/theme/externalImages.ts

+1
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,5 @@ export const defaultParametersForBuiltinIcons = new Map<string, string>([
160160
["/icon/rust.svg", "monochrome"],
161161
["/icon/terminal.svg", "monochrome"],
162162
["/icon/widgets.svg", "monochrome"],
163+
["/icon/windsurf.svg", "monochrome"],
163164
]);

0 commit comments

Comments
 (0)