Skip to content
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

STRF-5651: Break product card titles on overflow. #1389

Merged
merged 1 commit into from
Nov 30, 2018
Merged

STRF-5651: Break product card titles on overflow. #1389

merged 1 commit into from
Nov 30, 2018

Conversation

Ubersmake
Copy link
Contributor

What?

Changes to the New Products carousel in 2.5.2 changed how many products appeared as the view width became narrower and narrower. Specifically, it would always try to honor the number of columns set for the theme. This means that products with long words get less and less space as the view narrows, and particularly long words start overflowing into adjacent columns.

This change forces words to break if they hit the edge of the column.

This has also been verified to not crash Mobile Safari, which was the reason for #1371 in the first place.

Tickets / Documentation

Screenshots (if appropriate)

Before:

before

After:

after

@bigbot
Copy link

bigbot commented Nov 30, 2018

Autotagging @bigcommerce/storefront-team @davidchin

@EdFromBJCS
Copy link

Is it possible to make this hyphenate word breaks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants