fix: increase xterm.js line height to prevent character clipping on mobile devices
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user