diff --git a/index.html b/index.html index 15166cc..1f03367 100644 --- a/index.html +++ b/index.html @@ -153,40 +153,50 @@ `; } - // Add image to content based on position - if (['left', 'top'].includes(imagePosition)) { - content += imgContainer; - } - - // Add text content with proper spacing - if (bannerText) { - const textStyle = ` - margin: 0; - padding: 10px; - line-height: 1.6; - color: ${textColor}; - text-align: ${textAlign}; - font-size: ${fontSize}; - ${['left', 'right'].includes(imagePosition) ? 'overflow: hidden;' : 'display: block;'} - ${imagePosition === 'left' ? 'padding-left: 20px;' : ''} - ${imagePosition === 'right' ? 'padding-right: 20px;' : ''} - `; - - // Wrap text in link if URL is provided - const textContent = bannerText.replace(/\n/g, '
'); - const textElement = bannerLink - ? `${textContent}` - : textContent; - + // Add content based on image position + if (imagePosition === 'left' || imagePosition === 'right') { + // For side-by-side layout content += ` -