feat(settings): add terminal font size controls (#294)

* feat(settings): add terminal font size configuration

* chore(desktop): drop terminal font size setting
This commit is contained in:
shekohex
2026-02-04 16:32:25 +02:00
committed by GitHub
parent ea0deec14d
commit def6257985
9 changed files with 106 additions and 6 deletions
+3
View File
@@ -1034,6 +1034,9 @@ const sanitizeSettingsUpdate = (payload) => {
if (typeof candidate.fontSize === 'number' && Number.isFinite(candidate.fontSize)) {
result.fontSize = Math.max(50, Math.min(200, Math.round(candidate.fontSize)));
}
if (typeof candidate.terminalFontSize === 'number' && Number.isFinite(candidate.terminalFontSize)) {
result.terminalFontSize = Math.max(9, Math.min(52, Math.round(candidate.terminalFontSize)));
}
if (typeof candidate.padding === 'number' && Number.isFinite(candidate.padding)) {
result.padding = Math.max(50, Math.min(200, Math.round(candidate.padding)));
}