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

Skip to content

Commit 01652e8

Browse files
authored
fix: disable pointer events on app icons (#5664)
Ben accidentally clicked to open this in a new tab which seemed kinda janky UX-wise on our part.
1 parent f5d623f commit 01652e8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

site/src/components/AppLink/BaseIcon.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ import ComputerIcon from "@material-ui/icons/Computer"
44

55
export const BaseIcon: FC<{ app: WorkspaceApp }> = ({ app }) => {
66
return app.icon ? (
7-
<img alt={`${app.display_name} Icon`} src={app.icon} />
7+
<img
8+
alt={`${app.display_name} Icon`}
9+
src={app.icon}
10+
style={{
11+
pointerEvents: "none",
12+
}}
13+
/>
814
) : (
915
<ComputerIcon />
1016
)

0 commit comments

Comments
 (0)