IQSS / dataverse

Open source research data repository software
http://dataverse.org
Other
859 stars 481 forks source link

Dataverse Facets - Long, continuous facet names extend beyond facet border #266

Closed eaquigley closed 10 years ago

eaquigley commented 10 years ago

Author Name: Elizabeth Quigley (@eaquigley) Original Redmine Issue: 3680, https://redmine.hmdc.harvard.edu/issues/3680 Original Date: 2014-03-10 Original Assignee: Kevin Condon


Long, continuous facet names extend beyond facet border (ie Subject: Astronomy/Astrophysics). Look into how this is handled on other sites. Truncate? Smaller font?

eaquigley commented 10 years ago

Original Redmine Comment Author Name: Mike Heppler (@mheppler) Original Date: 2014-03-10T20:58:34Z


Found a nice CSS solution to this and applied it to the facet category names, as well as the links.

http://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/

eaquigley commented 10 years ago

Original Redmine Comment Author Name: Kevin Condon (@kcondon) Original Date: 2014-03-12T18:45:07Z


Tested on 3/12 with all browsers.

Works well, mostly it crops a word and continues with -restofword on next line. Opera and IE do not crop words.