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, cursorBlink: false,
disableStdin: true, disableStdin: true,
fontSize: 12, fontSize: 12,
lineHeight: 1.15, lineHeight: 1.25,
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace', fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',
theme: getTheme(), theme: getTheme(),
allowTransparency: true, allowTransparency: true,
+1 -1
View File
@@ -72,7 +72,7 @@ function initTerminal(forceConnect = false) {
terminal = new Terminal({ terminal = new Terminal({
cursorBlink: true, cursorBlink: true,
fontSize: props.fontSize, fontSize: props.fontSize,
lineHeight: 1.15, lineHeight: 1.25,
fontFamily: 'Consolas, Monaco, "Courier New", monospace', fontFamily: 'Consolas, Monaco, "Courier New", monospace',
theme: { theme: {
background: '#1e1e1e', background: '#1e1e1e',