-
-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Product description not correctly truncated #10685
Comments
I'm lowering this to S4 considering #10537 was only an s4. |
Hey @sumedhavs , welcome 🎉
Yes - I've updated the description above, with more detailed steps, on how to reproduce the issue. I hope this helps! |
Thank you so much, I was able to replicate it! I can work on this issue :) |
Just submitted a Pull Request for this issue, #10721. Appreciate if you can review at your earliest convenience! |
It looks like this was basically done in the attached PR, but a browser (capybara) spec needs adjusting to cater for this. |
It breaks wit Safari on Iphone
Re-opening this one, as per #12694. |
It breaks wit Safari on Iphone
Description
Relates to #10537.
If a product description is set without any line breaks, then the three dots
...
are not displayed correctly when truncating it in the shopfront.EDIT
The text is incorrectly truncated not only in width but also in length, as discussed here.
Expected Behavior
A long product description should be truncated correctly (even if it has no line breaks).
Actual Behaviour
If a product description is set without any line breaks, then the three dots
...
are not displayed correctly when truncating it in the shopfront.Steps to Reproduce
As admin
0. Log in as an enterprise shop and create shipping/payment methods, and then create two products (1. and 2.) and edit the descriptions respectively:
Incorrectly truncated text in width: Set
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi venenatis metus diam, eget scelerisque nibh auctor non. Vestibulum tempor non dolor id luctus.
as a product description.Incorrectly truncated text in length: Set
<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi venenatis metus diam, eget scelerisque nibh auctor non.</div><p><br/></p><p>Vestibulum tempor non dolor id luctus.<br/></p><p><br/></p>
as a product description.Create an order cycle and add the the two products to it. If the order cycle is open, these should be visible in the shopfront. More info on the userguide.
As customer
4. Visit the shopfront: notice the inconsistent text truncation both in width and length
Please note: this scenario reproduced the S2 regression and requires manual testing of PRs, for this issue.
Animated Gif/Screenshot
Incorrect truncation in width:
![image](https://user-images.githubusercontent.com/49817236/231254247-41a9510b-dba5-4038-932a-f5a40cc0d45f.png)
Incorrect truncation in length:
![image](https://user-images.githubusercontent.com/49817236/232530896-b076694c-7b60-4fd7-a52b-97181259d7f7.png)
Workaround
Add line-breaks to your product description. Details here.
Severity
bug-s3: a feature is broken but there is a workaround
Your Environment
Possible Fix
The text was updated successfully, but these errors were encountered: