Skip to content

Commit e396cce

Browse files
committed
fix: disable pointer events on app icons
Ben accidentally clicked to open this in a new tab which seemed kinda janky UX-wise on our part.
1 parent f5d623f commit e396cce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

site/src/components/AppLink/BaseIcon.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ 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 alt={`${app.display_name} Icon`} src={app.icon} style={{
8+
pointerEvents: "none",
9+
}} />
810
) : (
911
<ComputerIcon />
1012
)

0 commit comments

Comments
 (0)