From 86daedc802609c47dbe6740b27bd3d6aafd1b2aa Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sun, 23 Nov 2025 23:23:59 +0100 Subject: [PATCH] Update AppImage --- AppImage/app/globals.css | 1 - AppImage/components/terminal-panel.tsx | 24 ++++++++++++++---------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/AppImage/app/globals.css b/AppImage/app/globals.css index e79f3a3..27a00f2 100644 --- a/AppImage/app/globals.css +++ b/AppImage/app/globals.css @@ -163,4 +163,3 @@ .xterm-rows { margin: 0 !important; } - diff --git a/AppImage/components/terminal-panel.tsx b/AppImage/components/terminal-panel.tsx index 9e9c633..247aa1c 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, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs" +import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs" import type { CheatSheetResult } from "@/lib/cheat-sheet-result" // Declare CheatSheetResult here type TerminalPanelProps = { @@ -665,15 +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" - style={{ height: "calc(100vh - 24rem)" }} - /> - - ))} + key={terminal.id} + className={`absolute inset-0 ${activeTerminalId === terminal.id ? "block" : "hidden"}`} + > +
(containerRefs.current[terminal.id] = el)} + className="w-full h-full bg-black overflow-hidden" + /> +
+ ))} +
) : (
@@ -681,7 +685,7 @@ export const TerminalPanel: React.FC = ({ websocketUrl, onCl
1 && activeTerminalId === terminal.id ? "ring-2 ring-blue-500" : "" }`} >