mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-04 12:32:59 +00:00
rrr
This commit is contained in:
+5
-1
@@ -59,7 +59,10 @@
|
|||||||
// Get style values with fallbacks - handle both nested style and direct properties
|
// Get style values with fallbacks - handle both nested style and direct properties
|
||||||
const style = banner.Style || banner.style || {};
|
const style = banner.Style || banner.style || {};
|
||||||
const borderRadius = style.borderRadius || '8';
|
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 textColor = style.textColor || style.color || '#212529';
|
||||||
const textAlign = style.textAlign || 'left';
|
const textAlign = style.textAlign || 'left';
|
||||||
const fontSize = style.fontSize || '16px';
|
const fontSize = style.fontSize || '16px';
|
||||||
@@ -69,6 +72,7 @@
|
|||||||
|
|
||||||
// Create banner container with proper styling
|
// Create banner container with proper styling
|
||||||
bannerContainer.style.cssText = `
|
bannerContainer.style.cssText = `
|
||||||
|
${style.containerStyle || ''}
|
||||||
background-color: ${backgroundColor};
|
background-color: ${backgroundColor};
|
||||||
color: ${textColor};
|
color: ${textColor};
|
||||||
text-align: ${textAlign};
|
text-align: ${textAlign};
|
||||||
|
|||||||
Reference in New Issue
Block a user