From dcd3ef06ad64be8fa620a9b6261118c71ff7036f Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Fri, 13 Mar 2026 11:43:42 +0300 Subject: [PATCH] Instead of explicitly specifying the text size, we use a call to the new function "setTextSizeOnInfoBlock" (MonitorStream.js) This will allow us to correctly specify the class for the block. --- web/js/MonitorStream.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/js/MonitorStream.js b/web/js/MonitorStream.js index d89cee7cd..ea2ef3ed2 100644 --- a/web/js/MonitorStream.js +++ b/web/js/MonitorStream.js @@ -667,8 +667,7 @@ function MonitorStream(monitorData) { infoBlock.style.zIndex = 0; this.hideImgForInfoBlock(); } else { - const fontSize = calcTextSizeOnInfoBlock(infoBlock); - infoBlock.style.fontSize = params.fontSize || (fontSize)+'px'; + setTextSizeOnInfoBlock(infoBlock); infoBlock.style.zIndex = 10001; if (params.showImg === false) { this.hideImgForInfoBlock();