diff --git a/AppImage/components/terminal-panel.tsx b/AppImage/components/terminal-panel.tsx index bcbf65e..fe025bf 100644 --- a/AppImage/components/terminal-panel.tsx +++ b/AppImage/components/terminal-panel.tsx @@ -359,12 +359,10 @@ export const TerminalPanel: React.FC = ({ websocketUrl, onCl import("xterm/css/xterm.css"), ]).then(([Terminal, FitAddon]) => [Terminal, FitAddon]) - const fontSize = window.innerWidth < 768 ? 12 : 16 - const term = new TerminalClass({ rendererType: "dom", fontFamily: '"Courier", "Courier New", "Liberation Mono", "DejaVu Sans Mono", monospace', - fontSize: fontSize, + fontSize: isMobile ? 12 : 16, lineHeight: 1, cursorBlink: true, scrollback: 2000,