From ae44ad894a92152e524dee5d94624e56346b5c54 Mon Sep 17 00:00:00 2001 From: Codebuddy Date: Thu, 13 Aug 2026 13:30:20 +0800 Subject: [PATCH] =?utf8?q?fix(terminal):=20xterm=20lineHeight=201.0=20?= =?utf8?q?=E5=AF=BC=E8=87=B4=E5=AD=97=E5=BD=A2=E9=A1=B6=E9=83=A8=E8=A2=AB?= =?utf8?q?=E8=A3=81=E5=88=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - new Terminal 选项补充 lineHeight: 1.3(原未设置,默认 1.0) - 单元格高度由 20px 增至约 26px,中文等字形顶部不再被裁 - 仅前端改动,刷新浏览器即生效,保留 body 滚动锁定 --- frontend/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/index.html b/frontend/index.html index c2537f8..0b16c3c 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -797,7 +797,7 @@ body { position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: 100%; over function initTerminal() { if (term) return; term = new Terminal({ - cursorBlink: true, fontSize: 20, + cursorBlink: true, fontSize: 20, lineHeight: 1.3, fontFamily: "'Cascadia Code', 'Fira Code', 'JetBrains Mono', Menlo, Monaco, 'Courier New', monospace", theme: { background: '#1a1a2e', foreground: '#e0e0e0', cursor: '#4ecca3', cursorAccent: '#1a1a2e', -- 2.43.0