Skip to content

Commit 3415b9d

Browse files
feat: Pop out all apps (coder#2346)
1 parent 9fdee5d commit 3415b9d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

site/src/components/AppLink/AppLink.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@ export const AppLink: FC<AppLinkProps> = ({ userName, workspaceName, appName, ap
1616
const href = `/@${userName}/${workspaceName}/apps/${appName}`
1717

1818
return (
19-
<Link href={href} target="_blank" className={styles.link}>
19+
<Link
20+
href={href}
21+
target="_blank"
22+
className={styles.link}
23+
onClick={(event) => {
24+
event.preventDefault()
25+
window.open(href, appName, "width=900,height=600")
26+
}}
27+
>
2028
<img
2129
className={combineClasses([styles.icon, appIcon === "" ? "empty" : ""])}
2230
alt={`${appName} Icon`}

0 commit comments

Comments
 (0)