mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-03 20:12:59 +00:00
Add files via upload
This commit is contained in:
+5
-2
@@ -59,11 +59,13 @@
|
||||
let imageStyle = `max-width: 100%; max-height: 200px; border-radius: ${imageRadius}px;`;
|
||||
let containerStyle = 'margin-bottom: 15px;';
|
||||
|
||||
// Get image position data
|
||||
// Get image position data
|
||||
const imagePosition = banner.style.imagePosition || 'center';
|
||||
const imageX = banner.style.imageX || '0';
|
||||
const imageY = banner.style.imageY || '0';
|
||||
|
||||
console.log('Applying image position:', imagePosition, imageX, imageY);
|
||||
|
||||
switch(imagePosition) {
|
||||
case 'left':
|
||||
containerStyle += 'text-align: left; float: left; margin-right: 15px;';
|
||||
@@ -73,7 +75,8 @@
|
||||
break;
|
||||
case 'custom':
|
||||
containerStyle += 'position: relative;';
|
||||
imageStyle += `position: relative; left: ${imageX}px; top: ${imageY}px;`;
|
||||
// For custom position, use absolute positioning to ensure exact placement
|
||||
imageStyle += `position: absolute; left: ${imageX}px; top: ${imageY}px;`;
|
||||
break;
|
||||
default: // center
|
||||
containerStyle += `text-align: ${banner.style.textAlign || 'center'};`;
|
||||
|
||||
Reference in New Issue
Block a user