From a8f3c10e205bac99bbf9d96717b2f6d9dd6b6d98 Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Thu, 29 May 2025 10:33:08 +0200 Subject: [PATCH] rrr --- index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index dac8847..6a7f864 100644 --- a/index.html +++ b/index.html @@ -59,7 +59,10 @@ // Get style values with fallbacks - handle both nested style and direct properties const style = banner.Style || banner.style || {}; const borderRadius = style.borderRadius || '8'; - const backgroundColor = style.backgroundColor || style.background || '#f8f9fa'; + // If there's a gradient in background, use it instead of backgroundColor + const backgroundColor = (style.background && style.background.includes('gradient')) + ? style.background + : (style.backgroundColor || style.background || '#f8f9fa'); const textColor = style.textColor || style.color || '#212529'; const textAlign = style.textAlign || 'left'; const fontSize = style.fontSize || '16px'; @@ -69,6 +72,7 @@ // Create banner container with proper styling bannerContainer.style.cssText = ` + ${style.containerStyle || ''} background-color: ${backgroundColor}; color: ${textColor}; text-align: ${textAlign};