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

made words break when too long in facet labels #960

Merged
merged 1 commit into from
Aug 7, 2014

Conversation

bmaddy
Copy link
Contributor

@bmaddy bmaddy commented Jul 29, 2014

When a word is too long in the facet labels, it causes its container to explode into the main content when the browser window is narrow. This PR fixes that by allowing the browser to break some words onto the next line.

In the images below I've placed a long word in the label that starts with G.

Before

Chrome

Note the totals that have escaped
before-chrome

After

Chrome

Once Chrome supports the hyphen directive, we should get a nice hyphen for words that are broken (this hyphen isn't included when copying the text).
after-chrome

Safari

after-safari

Firefox

after-firefox

IE9

The label has a box around it because it was selected in the dom tree; it won't show up normally.
after-ie9

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling db79389 on bmaddy:hyphens into 1334888 on projectblacklight:master.

@jcoyne
Copy link
Member

jcoyne commented Jul 29, 2014

Thanks @bmaddy this looks good to me.

@bmaddy
Copy link
Contributor Author

bmaddy commented Aug 1, 2014

@cbeer, did you have thoughts on this PR? If it looks good it would be nice to get it merged so we can get it into sufia (I was told you were the person to contact about that).

@awead
Copy link
Contributor

awead commented Aug 1, 2014

#956 and #958 need to be fixed before this can be merged

jcoyne added a commit that referenced this pull request Aug 7, 2014
made words break when too long in facet labels
@jcoyne jcoyne merged commit db278be into projectblacklight:master Aug 7, 2014
@bmaddy bmaddy deleted the hyphens branch August 7, 2014 18:10
@mejackreed mejackreed added this to the 5.5.3 milestone Aug 28, 2014
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.

None yet

5 participants