From 7dd90f3076fc7894cb8cbfa9e1e225c598d246af Mon Sep 17 00:00:00 2001 From: Asher Date: Mon, 23 Jun 2025 11:44:26 -0800 Subject: [PATCH 1/4] chore: show iframe controls on preview slug only (#18480) --- site/src/pages/TaskPage/TaskAppIframe.tsx | 70 +++++------ site/src/pages/TaskPage/TaskPage.stories.tsx | 117 +++++++++++-------- 2 files changed, 106 insertions(+), 81 deletions(-) diff --git a/site/src/pages/TaskPage/TaskAppIframe.tsx b/site/src/pages/TaskPage/TaskAppIframe.tsx index 860fc64cbbcec..b995dfec771b6 100644 --- a/site/src/pages/TaskPage/TaskAppIframe.tsx +++ b/site/src/pages/TaskPage/TaskAppIframe.tsx @@ -58,42 +58,44 @@ export const TaskAppIFrame: FC = ({ return (
-
- + {app.slug === "preview" && ( +
+ - {/* Possibly we will put a URL bar here, but for now we cannot due to - * cross-origin restrictions in iframes. */} -
+ {/* Possibly we will put a URL bar here, but for now we cannot due to + * cross-origin restrictions in iframes. */} +
- - - - - - - - - Open app in new tab - - - - -
+ + + + + + + + + Open app in new tab + + + + +
+ )}