From f68920e936c4d71446188a6917c610a383ca81f8 Mon Sep 17 00:00:00 2001 From: Ishaan Dey Date: Sat, 11 May 2024 19:28:37 -0700 Subject: [PATCH] modify preview ui --- frontend/components/editor/index.tsx | 2 +- frontend/components/editor/preview/index.tsx | 10 ++++- frontend/components/editor/sidebar/index.tsx | 39 +++++++++++++------- 3 files changed, 35 insertions(+), 16 deletions(-) diff --git a/frontend/components/editor/index.tsx b/frontend/components/editor/index.tsx index 493b5a0..5197ad7 100644 --- a/frontend/components/editor/index.tsx +++ b/frontend/components/editor/index.tsx @@ -715,7 +715,7 @@ export default function CodeEditor({ -
- Preview +
+
+ Preview + + localhost:3000 + +
{collapsed ? ( diff --git a/frontend/components/editor/sidebar/index.tsx b/frontend/components/editor/sidebar/index.tsx index 2720a1d..6027012 100644 --- a/frontend/components/editor/sidebar/index.tsx +++ b/frontend/components/editor/sidebar/index.tsx @@ -1,6 +1,13 @@ "use client"; -import { FilePlus, FolderPlus, Loader2, Search, Sparkles } from "lucide-react"; +import { + FilePlus, + FolderPlus, + Loader2, + MonitorPlay, + Search, + Sparkles, +} from "lucide-react"; import SidebarFile from "./file"; import SidebarFolder from "./folder"; import { Sandbox, TFile, TFolder, TTab } from "@/lib/types"; @@ -13,6 +20,7 @@ import { dropTargetForElements, monitorForElements, } from "@atlaskit/pragmatic-drag-and-drop/element/adapter"; +import Button from "@/components/ui/customButton"; export default function Sidebar({ sandboxData, @@ -177,19 +185,24 @@ export default function Sidebar({ )}
-
-
- - Copilot{" "} - - ⌘G - +
+
+
+ + Copilot{" "} + + ⌘G + +
+
- +
);