This commit is contained in:
Eugene Pankov 2022-01-31 22:16:05 +01:00
parent 767f9f3215
commit be3bae3a6f
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4

View file

@ -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,
),
)
}
}