mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-11 17:26:45 +02:00
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:
1 parent
a2f4e1f257
commit
2c2e3822f6
2 files changed
+1
-1
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 58 KiB |
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user