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.
pull/4709/head
IgorA100 2026-03-13 11:43:42 +03:00 committed by GitHub
parent 33783300bd
commit dcd3ef06ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -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();