mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
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:
@@ -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 />
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user