Eugene Pankov 4 years ago
parent
commit
be3bae3a6f
1 changed files with 7 additions and 3 deletions
  1. 7 3
      tabby-terminal/src/components/appearanceSettingsTab.component.ts

+ 7 - 3
tabby-terminal/src/components/appearanceSettingsTab.component.ts

@@ -44,8 +44,12 @@ export class AppearanceSettingsTabComponent {
     }
 
     fixFontSize () {
-        if (this.config.store.terminal.fontSize > 100) {
-            this.config.store.terminal.fontSize = 12
-        }
+        this.config.store.terminal.fontSize = Math.min(
+            50,
+            Math.max(
+                5,
+                this.config.store.terminal.fontSize,
+            ),
+        )
     }
 }