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.
This commit is contained in:
Kyle Carberry
2023-01-10 15:42:33 -06:00
committed by GitHub
parent f5d623ff3f
commit 01652e8afb
+7 -1
View File
@@ -4,7 +4,13 @@ import ComputerIcon from "@material-ui/icons/Computer"
export const BaseIcon: FC<{ app: WorkspaceApp }> = ({ app }) => {
return app.icon ? (
<img alt={`${app.display_name} Icon`} src={app.icon} />
<img
alt={`${app.display_name} Icon`}
src={app.icon}
style={{
pointerEvents: "none",
}}
/>
) : (
<ComputerIcon />
)