From c585dd8d634ea386eacd681f2b4e4e1041477454 Mon Sep 17 00:00:00 2001 From: alexanderroese Date: Tue, 13 Aug 2024 11:42:24 +0200 Subject: [PATCH] auto change font size to small if text is too long --- snippets/shx-3d-render-input.liquid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/shx-3d-render-input.liquid b/snippets/shx-3d-render-input.liquid index a324ab3..ec98c02 100644 --- a/snippets/shx-3d-render-input.liquid +++ b/snippets/shx-3d-render-input.liquid @@ -1020,9 +1020,9 @@ document.querySelector('#shx-info-text').style.display = 'block'; // hide the text after 5 seconds - setTimeout(() => { + this.infoTextTimeout = setTimeout(() => { document.querySelector('#shx-info-text').style.display = 'none'; - }, 10000); + }, 5000); } }