mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-17 22:18:41 -09:00
parent
d0f03f52e5
commit
90e8c1a766
1 changed files with 2 additions and 1 deletions
|
|
@ -70,7 +70,8 @@ export function decreaseFontSize() {
|
||||||
effect() {
|
effect() {
|
||||||
const state = getState();
|
const state = getState();
|
||||||
const old = state.ui.fontSizeOverride || state.ui.fontSize;
|
const old = state.ui.fontSizeOverride || state.ui.fontSize;
|
||||||
const value = old - 1;
|
// when the font-size is really small, below 5px, xterm starts showing up issues.
|
||||||
|
const value = old > 5 ? old - 1 : old;
|
||||||
dispatch({
|
dispatch({
|
||||||
type: UI_FONT_SIZE_SET,
|
type: UI_FONT_SIZE_SET,
|
||||||
value
|
value
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue