add custom font size option

This commit is contained in:
bunnybeam 2025-08-08 17:03:56 +01:00
parent 0f6413d4b9
commit 55a0e11366
No known key found for this signature in database
6 changed files with 33 additions and 2 deletions

View file

@ -129,7 +129,12 @@
const fontSize = localStorage.getItem('fontSize');
if (fontSize) {
document.documentElement.classList.add('f-' + fontSize);
if (fontSize === "custom") {
const customFontSize = localStorage.getItem('customFontSize');
document.documentElement.style.setProperty('font-size', `${customFontSize}px`);
} else {
document.documentElement.classList.add('f-' + fontSize);
}
}
const cornerRadius = localStorage.getItem('cornerRadius');