1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-09-19 17:07:08 +03:00

auto-fix excessive font sizes - fixes #5542

This commit is contained in:
Eugene Pankov 2022-01-31 21:50:16 +01:00
parent 8f4e28fba4
commit 5b905af5d3
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
2 changed files with 7 additions and 1 deletions

View File

@ -17,7 +17,7 @@ h3.mb-3(translate) Appearance
type='number',
max='48',
[(ngModel)]='config.store.terminal.fontSize',
(ngModelChange)='config.save()',
(ngModelChange)='fixFontSize(); config.save()',
)
.form-line

View File

@ -42,4 +42,10 @@ export class AppearanceSettingsTabComponent {
this.config.requestRestart()
}
}
fixFontSize () {
if (this.config.store.terminal.fontSize > 100) {
this.config.store.terminal.fontSize = 12
}
}
}