Skip to content

Commit 6d5e038

Browse files
committed
fix: slightly increase default font size of terminal
1 parent 8fdc89b commit 6d5e038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: plugins/plugin-codeflare/src/components/Terminal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export default class XTerm extends React.PureComponent<Props, State> {
257257
const standIn = document.querySelector("body .repl")
258258
if (standIn) {
259259
const fontTheme = getComputedStyle(standIn)
260-
xterm.options.fontSize = parseInt(fontTheme.fontSize.replace(/px$/, ""), 10)
260+
xterm.options.fontSize = (parseInt(fontTheme.fontSize.replace(/px$/, ""), 10) * 16) / 14
261261
// terminal.setOption('lineHeight', )//parseInt(fontTheme.lineHeight.replace(/px$/, ''), 10))
262262

263263
// FIXME. not tied to theme

0 commit comments

Comments
 (0)