mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-20 11:29:56 +00: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',
|
type='number',
|
||||||
max='48',
|
max='48',
|
||||||
[(ngModel)]='config.store.terminal.fontSize',
|
[(ngModel)]='config.store.terminal.fontSize',
|
||||||
(ngModelChange)='config.save()',
|
(ngModelChange)='fixFontSize(); config.save()',
|
||||||
)
|
)
|
||||||
|
|
||||||
.form-line
|
.form-line
|
||||||
|
@ -42,4 +42,10 @@ export class AppearanceSettingsTabComponent {
|
|||||||
this.config.requestRestart()
|
this.config.requestRestart()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fixFontSize () {
|
||||||
|
if (this.config.store.terminal.fontSize > 100) {
|
||||||
|
this.config.store.terminal.fontSize = 12
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user