Skip to content

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

Merged
Ubersmake merged 1 commit into
bigcommerce:masterfrom
Ubersmake:STRF-5651
Nov 30, 2018
Merged

Ubersmake merged 1 commit into
bigcommerce:masterfrom
Ubersmake:STRF-5651

Conversation

@Ubersmake

Copy link
Copy Markdown
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

bigbot commented Nov 30, 2018

Copy link
Copy Markdown

Autotagging @bigcommerce/storefront-team @davidchin

@EdFromBJCS

Copy link
Copy Markdown

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