From 9dbc8b00ea717ad72cce478e14f27655251ffac2 Mon Sep 17 00:00:00 2001 From: alexanderroese Date: Tue, 13 Aug 2024 11:19:04 +0200 Subject: [PATCH] auto change font size to small if text is too long --- snippets/shx-3d-render-input.liquid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/shx-3d-render-input.liquid b/snippets/shx-3d-render-input.liquid index 9e80da3..772e743 100644 --- a/snippets/shx-3d-render-input.liquid +++ b/snippets/shx-3d-render-input.liquid @@ -1137,7 +1137,7 @@ // 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.value = 'Here1 Text ist zu lang. Wir haben die Schriftgröße auf klein gesetzt. Bitte überprüfe deinen Text.'; + 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); }