auto change font size to small if text is too long

main
alexanderroese 2024-08-13 11:13:14 +02:00
parent bb134f8371
commit b473994147
1 changed files with 1 additions and 1 deletions

View File

@ -1010,7 +1010,7 @@
// if font size is not small, set it to small
if(document.querySelector('#shx-fontSize').value !== 'Klein #small') {
alert("Text ist zu lang. Wir haben die Schriftgröße auf klein gesetzt. Bitte überprüfe deinen Text.");
alert("Here2 Text ist zu lang. Wir haben die Schriftgröße auf klein gesetzt. Bitte überprüfe deinen Text.");
document.querySelector('#shx-fontSize').value = 'Klein #small';
document.querySelector('#shx-fontSize').dispatchEvent(new Event('change'));