diff --git a/AppImage/components/terminal-panel.tsx b/AppImage/components/terminal-panel.tsx index 247aa1c..bf1bcdc 100644 --- a/AppImage/components/terminal-panel.tsx +++ b/AppImage/components/terminal-panel.tsx @@ -19,7 +19,7 @@ import { import { Button } from "@/components/ui/button" import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from "@/components/ui/dialog" import { Input } from "@/components/ui/input" -import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs" +import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs" import type { CheatSheetResult } from "@/lib/cheat-sheet-result" // Declare CheatSheetResult here type TerminalPanelProps = { @@ -665,19 +665,19 @@ export const TerminalPanel: React.FC = ({ websocketUrl, onCl ))} -
- {terminals.map((terminal) => ( + {terminals.map((terminal) => ( +
-
(containerRefs.current[terminal.id] = el)} - className="w-full h-full bg-black overflow-hidden" - /> -
- ))} -
+ ref={(el) => (containerRefs.current[terminal.id] = el)} + className="w-full h-full bg-black overflow-hidden" + /> +
+ ))} ) : (