diff --git a/apps/web/src/components/terminal.tsx b/apps/web/src/components/terminal.tsx index fc267d0..8c3b236 100644 --- a/apps/web/src/components/terminal.tsx +++ b/apps/web/src/components/terminal.tsx @@ -21,7 +21,7 @@ interface TerminalProps { } const FONT_SIZE_KEY = "terminal-font-size"; -const MIN_FONT_SIZE = 16; +const MIN_FONT_SIZE = 10; const MAX_FONT_SIZE = 24; const RECONNECT_ATTEMPTS = 3; const RECONNECT_DELAY_BASE = 1000; @@ -242,7 +242,8 @@ export const TerminalComponent: React.FC = ({ ws.close(); term.dispose(); }; - }, [instanceId, connectWebSocket, calculateFontSize]); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [instanceId, connectWebSocket]); // Update parent about status changes useEffect(() => {