add custom font size option
This commit is contained in:
parent
0f6413d4b9
commit
55a0e11366
6 changed files with 33 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue