From ec6b65868599f002c5a54a40c6b3e71d506cb57b Mon Sep 17 00:00:00 2001 From: MacRimi Date: Thu, 11 Dec 2025 21:22:15 +0100 Subject: [PATCH] Update script-terminal-modal.tsx --- AppImage/components/script-terminal-modal.tsx | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/AppImage/components/script-terminal-modal.tsx b/AppImage/components/script-terminal-modal.tsx index dba5c03..58ed9c8 100644 --- a/AppImage/components/script-terminal-modal.tsx +++ b/AppImage/components/script-terminal-modal.tsx @@ -32,8 +32,6 @@ interface ScriptTerminalModalProps { open: boolean onClose: () => void scriptPath: string - scriptName: string - scriptDescription?: string title: string description: string } @@ -42,8 +40,6 @@ export function ScriptTerminalModal({ open: isOpen, onClose, scriptPath, - scriptName, - scriptDescription, title, description, }: ScriptTerminalModalProps) { @@ -503,7 +499,7 @@ export function ScriptTerminalModal({ e.stopPropagation() setIsResizing(true) - + const clientY = "touches" in e ? e.touches[0].clientY : e.clientY const startY = clientY const startHeight = modalHeight @@ -520,7 +516,7 @@ export function ScriptTerminalModal({ const handleEnd = () => { const finalHeight = modalHeightRef.current setIsResizing(false) - + document.removeEventListener("mousemove", handleMove as any) document.removeEventListener("mouseup", handleEnd) document.removeEventListener("touchmove", handleMove as any) @@ -569,14 +565,12 @@ export function ScriptTerminalModal({ onEscapeKeyDown={(e) => e.preventDefault()} hideClose > - {scriptName || title} + {title}
-

{scriptName || title}

- {(scriptDescription || description) && ( -

{scriptDescription || description}

- )} +

{title}

+ {description &&

{description}

}
@@ -603,9 +597,11 @@ export function ScriptTerminalModal({ }`} style={{ touchAction: "none" }} > - + )} @@ -862,4 +858,4 @@ export function ScriptTerminalModal({ )} ) -} \ No newline at end of file +}