From 846e2e27baad14800157cc3bda0d0d0d1dc3efb8 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sun, 23 Nov 2025 17:57:46 +0100 Subject: [PATCH] Update terminal-panel.tsx --- AppImage/components/terminal-panel.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/AppImage/components/terminal-panel.tsx b/AppImage/components/terminal-panel.tsx index 58e7cbb..20ef4d5 100644 --- a/AppImage/components/terminal-panel.tsx +++ b/AppImage/components/terminal-panel.tsx @@ -134,7 +134,7 @@ const proxmoxCommands = [ export const TerminalPanel: React.FC = ({ websocketUrl, onClose }) => { const [terminals, setTerminals] = useState([]) const [activeTerminalId, setActiveTerminalId] = useState("") - const [layout, setLayout] = useState<"single" | "grid">("single") + const [layout, setLayout] = useState<"single" | "grid">("grid") const [isMobile, setIsMobile] = useState(false) const [terminalHeight, setTerminalHeight] = useState(500) // altura por defecto en px const [isResizing, setIsResizing] = useState(false) @@ -675,7 +675,12 @@ export const TerminalPanel: React.FC = ({ websocketUrl, onCl ) : (
{terminals.map((terminal) => ( -
+
(containerRefs.current[terminal.id] = el)} - className="flex-1 w-full max-w-full bg-black overflow-hidden" + onClick={() => setActiveTerminalId(terminal.id)} + className="flex-1 w-full max-w-full bg-black overflow-hidden cursor-pointer" />
))}