From 020f2cd58383dc15054f2e9973b498ccc805768e Mon Sep 17 00:00:00 2001 From: duorameng <2997944583@qq.com> Date: Thu, 21 May 2026 16:07:08 +0800 Subject: [PATCH] fix: increase xterm.js line height to prevent character clipping on mobile devices --- web/src/components/LogContent.vue | 2 +- web/src/components/XTerminal.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/LogContent.vue b/web/src/components/LogContent.vue index fecca9f..c995864 100644 --- a/web/src/components/LogContent.vue +++ b/web/src/components/LogContent.vue @@ -49,7 +49,7 @@ function initTerminal() { cursorBlink: false, disableStdin: true, fontSize: 12, - lineHeight: 1.15, + lineHeight: 1.25, fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace', theme: getTheme(), allowTransparency: true, diff --git a/web/src/components/XTerminal.vue b/web/src/components/XTerminal.vue index e870500..aa733bf 100644 --- a/web/src/components/XTerminal.vue +++ b/web/src/components/XTerminal.vue @@ -72,7 +72,7 @@ function initTerminal(forceConnect = false) { terminal = new Terminal({ cursorBlink: true, fontSize: props.fontSize, - lineHeight: 1.15, + lineHeight: 1.25, fontFamily: 'Consolas, Monaco, "Courier New", monospace', theme: { background: '#1e1e1e',