auto change font size to small if text is too long

main
alexanderroese 2024-08-13 11:21:35 +02:00
parent 9dbc8b00ea
commit 9f736816f2
1 changed files with 8 additions and 6 deletions

View File

@ -1134,15 +1134,17 @@
this.Viewer3DContainer.appendChild(this.invisibleProductID);
}
setTimeout(createIFrame.bind(this), 1000);
// create text below the iframe for information if the text is too long and we set the font size to small
this.infoText = document.createElement('span');
this.infoText.innerText = 'Here1 Text ist zu lang. Wir haben die Schriftgröße auf klein gesetzt. Bitte überprüfe deinen Text.';
/* this.infoText.classList.add('shx-info-text'); */
this.Viewer3DContainer.appendChild(this.infoText);
}
setTimeout(createIFrame.bind(this), 1000);
/* this.infoText.classList.add('shx-info-text'); */
this.container.appendChild(this.infoText);
}
initCurrentVariant(id) {