From 452ba9351e7b8a8cf1b046da5f85c3cf91b10038 Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Thu, 29 May 2025 10:47:28 +0200 Subject: [PATCH] ff --- admin-dashboard.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/admin-dashboard.html b/admin-dashboard.html index b2b8140..ab71c23 100644 --- a/admin-dashboard.html +++ b/admin-dashboard.html @@ -1921,7 +1921,7 @@ function updateBannerPreview() { containerStyle: template.containerStyle || '' }; - // Create text content with template styles + // Create text content with template styles - only create the text element once const textStyle = ` font-size: ${document.getElementById('bannerFontSize')?.value || '16'}px; color: ${document.getElementById('bannerTextColor')?.value || '#000'}; @@ -1932,11 +1932,14 @@ function updateBannerPreview() { ${template?.textStyle || ''} `; - // Create a single text element - const textElement = ` + // Create the text element content + const textContent = ` `; + + // Set the text element variable that will be used in the banner content + const textElement = textContent; // Special handling for specific templates if (currentTemplate === 'dark') {