From 45ce8b2b2dbaf33aaf4ae2a9056bab0a3251ff2c Mon Sep 17 00:00:00 2001 From: pllx Date: Thu, 30 Apr 2026 09:07:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=81=8A=E5=A4=A9=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=A0=8F=E5=B7=A5=E5=85=B7=E5=AD=97=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/js/chat-room/font-size.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/js/chat-room/font-size.js b/resources/js/chat-room/font-size.js index 52d10d4..f813b70 100644 --- a/resources/js/chat-room/font-size.js +++ b/resources/js/chat-room/font-size.js @@ -34,7 +34,8 @@ function applyInputToolbarFontSize(px) { return; } - const fontSize = `${px}px`; + const toolbarFontSize = Math.max(1, px - 1); + const fontSize = `${toolbarFontSize}px`; toolbarRow.style.fontSize = fontSize; toolbarRow.style.fontFamily = "inherit"; toolbarRow.style.lineHeight = "1.2";