From baf09cc578bfb6b37764b0abf12dfe7d430fb7f4 Mon Sep 17 00:00:00 2001 From: Montreal Date: Fri, 21 Jun 2024 00:17:49 +0300 Subject: [PATCH] Update chatlog-parser.js --- js/chatlog-parser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/chatlog-parser.js b/js/chatlog-parser.js index 3063cf2..e0888f2 100644 --- a/js/chatlog-parser.js +++ b/js/chatlog-parser.js @@ -73,9 +73,9 @@ $(document).ready(function() { }); var r = $.jStorage.get("lastFontSize"), o = $.jStorage.get("lastLineHeight"); - r || o ? ($(".output").css({ + r || o ? ($(".output").css({ "font-size": $.jStorage.get("lastFontSize") + "px", - "line-height": $.jStorage.get("lastLineHeight") + "px", + "line-height": ($.jStorage.get("lastFontSize") - 10) + "px", }), $("#font-label").text( "font size (" + $.jStorage.get("lastFontSize") + "px):" @@ -87,7 +87,7 @@ $(document).ready(function() { if (newSize >= 1 && newSize <= 64) { $(".output").css({ "font-size": newSize + "px", - "line-height": newSize + "px", + "line-height": (newSize - 10) + "px", }); $("#font-label").text("font size (" + newSize + "px):"); $.jStorage.set("lastFontSize", newSize);