From 50df1a22128cac1408b0d91d20ae4e5d09d5c05d Mon Sep 17 00:00:00 2001 From: MacRimi Date: Wed, 10 Dec 2025 22:57:19 +0100 Subject: [PATCH] Update script-terminal-modal.tsx --- AppImage/components/script-terminal-modal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AppImage/components/script-terminal-modal.tsx b/AppImage/components/script-terminal-modal.tsx index da42c2d..c8ea7a8 100644 --- a/AppImage/components/script-terminal-modal.tsx +++ b/AppImage/components/script-terminal-modal.tsx @@ -64,7 +64,7 @@ export function ScriptTerminalModal({ const [isWaitingNextInteraction, setIsWaitingNextInteraction] = useState(false) const waitingTimeoutRef = useRef(null) - const [modalHeight, setModalHeight] = useState(80) // Cambiado de 600px a 80vh + const [modalHeight, setModalHeight] = useState(60) // Reducido de 80vh a 60vh para que sea visible el header y footer const [isResizing, setIsResizing] = useState(false) const resizeHandlersRef = useRef<{ handleMouseMove: ((e: MouseEvent) => void) | null @@ -424,7 +424,7 @@ export function ScriptTerminalModal({ const currentY = "touches" in moveEvent ? moveEvent.touches[0].clientY : moveEvent.clientY const deltaY = currentY - startY const deltaPercent = (deltaY / window.innerHeight) * 100 - const newHeight = Math.max(50, Math.min(95, startHeight + deltaPercent)) + const newHeight = Math.max(30, Math.min(85, startHeight + deltaPercent)) // Cambiado límites a 30vh mínimo y 85vh máximo setModalHeight(newHeight)