From d950588c36ae41b5cf2a4b2b21ea3a3da7707a11 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sun, 23 Nov 2025 23:42:19 +0100 Subject: [PATCH] Update terminal-panel.tsx --- AppImage/components/terminal-panel.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AppImage/components/terminal-panel.tsx b/AppImage/components/terminal-panel.tsx index bf1bcdc..bcbf65e 100644 --- a/AppImage/components/terminal-panel.tsx +++ b/AppImage/components/terminal-panel.tsx @@ -359,10 +359,12 @@ 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: 16, + fontSize: fontSize, lineHeight: 1, cursorBlink: true, scrollback: 2000,