mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-11 17:26:45 +02:00
Improve display of limited stock messages on images
Adjust font size and line height for "Stock limité" text in image editor to display on two lines. 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/Z8vED4L
This commit is contained in:
1 parent
7d9b5b1a82
commit
38ce01eec3
1 file changed
+9
-2
@@ -757,10 +757,17 @@ export default function ImageEditor() {
|
||||
style={{
|
||||
fontSize: ribbon.text.length <= 5 ? '28px' :
|
||||
ribbon.text.length <= 8 ? '24px' :
|
||||
ribbon.text.length <= 11 ? '20px' : '16px'
|
||||
ribbon.text.length <= 11 ? '20px' : '16px',
|
||||
lineHeight: ribbon.text === "Stock limité" ? '1.1' : 'normal'
|
||||
}}
|
||||
>
|
||||
{ribbon.text}
|
||||
{ribbon.text === "Stock limité" ? (
|
||||
<>
|
||||
Stock
|
||||
<br />
|
||||
limité
|
||||
</>
|
||||
) : ribbon.text}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user