Remove extra space (skin.js)

pull/4709/head
IgorA100 2026-03-12 23:51:36 +03:00 committed by GitHub
parent d00f56d036
commit fc2022c651
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 5 deletions

View File

@ -1856,11 +1856,11 @@ function setButtonSizeOnStream() {
}
function calcTextSizeOnInfoBlock(el) {
const w = el.offsetWidth;
const textLength = el.innerText.length;
if (textLength === 0) return false;
const d = (w/400 > 1) ? 1 : w/400/0.8; // If the block width is less than 400px, the text will take up more than 40% of the width, otherwise it will be difficult to read.
return parseInt((w/textLength) * 0.6 / d); // ~40% of the block width
const w = el.offsetWidth;
const textLength = el.innerText.length;
if (textLength === 0) return false;
const d = (w/400 > 1) ? 1 : w/400/0.8; // If the block width is less than 400px, the text will take up more than 40% of the width, otherwise it will be difficult to read.
return parseInt((w/textLength) * 0.6 / d); // ~40% of the block width
}
function setTextSizeOnInfoBlock() {