diff --git a/index.html b/index.html
index 843fdac9..a6bb70b9 100644
--- a/index.html
+++ b/index.html
@@ -676,8 +676,8 @@
| Font size |
-
-
+
+
|
diff --git a/modules/ui/style.js b/modules/ui/style.js
index 73a4c459..b1c718fd 100644
--- a/modules/ui/style.js
+++ b/modules/ui/style.js
@@ -568,13 +568,13 @@ styleFontSize.addEventListener("change", function () {
});
styleFontPlus.addEventListener("click", function () {
- const size = Math.max(rn(getEl().attr("data-size") * 1.1, 2), 1);
- changeFontSize(size);
+ const size = +getEl().attr("data-size") + 1;
+ changeFontSize(Math.min(size, 999));
});
styleFontMinus.addEventListener("click", function () {
- const size = Math.max(rn(getEl().attr("data-size") * 0.9, 2), 1);
- changeFontSize(size);
+ const size = +getEl().attr("data-size") - 1;
+ changeFontSize(Math.max(size, 1));
});
function changeFontSize(size) {