From e591d5044e7ec1c7abd32e184f5b68f60d9cb0e2 Mon Sep 17 00:00:00 2001 From: Asher Date: Fri, 20 Jun 2025 10:56:54 -0800 Subject: [PATCH] chore: show iframe controls on preview slug only --- 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 + + + + +
+ )}