Adjust text size for product arrival and novelty ribbons for better readability

Update font sizes in ImageEditor component for ribbon text based on length to improve display of short and medium-length strings.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/VEZwUqa
This commit is contained in:
michaelschal committed 2025-10-11 09:07:56 +00:00
1 parent 6f2433b451
commit 986d122528
1 file changed
+3 -3
+3 -3
View File
@@ -606,9 +606,9 @@ export default function ImageEditor() {
<div
className="ribbon-text"
style={{
fontSize: ribbon.text.length <= 5 ? '20px' :
ribbon.text.length <= 7 ? '16px' :
ribbon.text.length <= 10 ? '13px' : '11px'
fontSize: ribbon.text.length <= 5 ? '22px' :
ribbon.text.length <= 8 ? '18px' :
ribbon.text.length <= 11 ? '15px' : '12px'
}}
>
{ribbon.text}