From c809e00d47dd39da2041eac92c89a76e74b1198b Mon Sep 17 00:00:00 2001 From: Chris Tate Date: Sat, 25 Oct 2025 12:49:21 +0000 Subject: [PATCH] Add fullscreen button in sandbox pane toolbar --- components/task-details.tsx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/components/task-details.tsx b/components/task-details.tsx index 064ecf5b..01ee5197 100644 --- a/components/task-details.tsx +++ b/components/task-details.tsx @@ -29,6 +29,8 @@ import { X, ExternalLink, Plus, + Maximize, + Minimize, } from 'lucide-react' import { cn } from '@/lib/utils' import { useState, useEffect, useRef, useCallback } from 'react' @@ -204,6 +206,7 @@ export function TaskDetails({ task, maxSandboxDuration = 300 }: TaskDetailsProps const [showPreviewPane, setShowPreviewPane] = useState(() => getShowPreviewPane()) const [showChatPane, setShowChatPane] = useState(() => getShowChatPane()) const [previewKey, setPreviewKey] = useState(0) + const [isPreviewFullscreen, setIsPreviewFullscreen] = useState(false) const [isRestartingDevServer, setIsRestartingDevServer] = useState(false) const [isStoppingSandbox, setIsStoppingSandbox] = useState(false) const [isStartingSandbox, setIsStartingSandbox] = useState(false) @@ -1860,7 +1863,7 @@ export function TaskDetails({ task, maxSandboxDuration = 300 }: TaskDetailsProps {/* Preview */} {showPreviewPane && ( -
+
{/* Preview Toolbar */}
@@ -1894,6 +1897,19 @@ export function TaskDetails({ task, maxSandboxDuration = 300 }: TaskDetailsProps > +