Correctly display the Euro symbol with product prices

Fix an issue where the Euro symbol was misplaced when saving product images, ensuring it appears after the price consistently.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: e8c912ba-b86c-4da3-954c-070906550761
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/ltYxoh9
This commit is contained in:
michaelschal committed 2025-11-22 11:13:41 +00:00
1 parent a2f4e1f257
commit 2c2e3822f6
3 files changed
+2 -2

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

+1 -1
View File
@@ -615,7 +615,7 @@ export default function ImageEditor() {
}`}
style={{ fontSize: `${priceBadge.size}px` }}
>
{priceBadge.price}€
{priceBadge.price} €
</div>
)}
+1 -1
View File
@@ -620,7 +620,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
// Add price badge overlay
if (priceBadge) {
const padding = 16;
const badgeText = `€${priceBadge.price}`;
const badgeText = `${priceBadge.price} €`;
const fontSize = priceBadge.size;
const textWidth = badgeText.length * fontSize * 0.6; // Approximate
const badgeWidth = textWidth + padding * 2;