fix: increase xterm.js line height to prevent character clipping on mobile devices

This commit is contained in:
duorameng
2026-05-21 16:07:08 +08:00
parent 4076924704
commit 020f2cd583
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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',