mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-12 01:36:54 +02:00
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:
1 parent
6f2433b451
commit
986d122528
1 file changed
+3
-3
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user