feat(epub.js): add font size selector with precised + and - controls

This commit is contained in:
IgorKurkov
2025-10-26 18:40:52 +01:00
parent 132c17151a
commit c5571fc359
2 changed files with 68 additions and 21 deletions

View File

@@ -123,11 +123,7 @@ var reader;
reader.book.ready.then(() => {
const savedFontSize = localStorage.getItem("calibre.reader.fontSize");
if (savedFontSize) {
const fontSizeFader = document.getElementById("fontSizeFader");
if (fontSizeFader) {
fontSizeFader.value = savedFontSize;
reader.rendition.themes.fontSize(`${savedFontSize}%`);
}
reader.rendition.themes.fontSize(`${savedFontSize}%`);
}
});
})();