mirror of
https://github.com/Eugeny/tabby.git
synced 2025-02-23 14:59:41 +08:00
auto-fix excessive font sizes - fixes #5542
This commit is contained in:
parent
8f4e28fba4
commit
5b905af5d3
@ -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
|
||||
|
@ -42,4 +42,10 @@ export class AppearanceSettingsTabComponent {
|
||||
this.config.requestRestart()
|
||||
}
|
||||
}
|
||||
|
||||
fixFontSize () {
|
||||
if (this.config.store.terminal.fontSize > 100) {
|
||||
this.config.store.terminal.fontSize = 12
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user