paulburkinshaw / mopidy-radio-pi

Online radio HTTP interface for the Mopidy music server
Apache License 2.0
2 stars 0 forks source link

Long track titles in search results messing up layout #2

Closed paulburkinshaw closed 8 years ago

paulburkinshaw commented 8 years ago

During testing of the search it was found that if a track has a long title it is pushing the markup down the page and messing up the results, eg in the below screen we searched for 'smiths' and the first result has the title 'This Charming Man - 2011 Remastered Version':

searchresults

paulburkinshaw commented 8 years ago

37 characters is the max, any more and it pushes the markup down. So if we allow 34 chars to allow for elipses

paulburkinshaw commented 8 years ago

I'll have a look at truncating the title on the fly during the processing of search results

paulburkinshaw commented 8 years ago

Fixed the track titles, but also found their is an issue if the artist name is longer than 25 characters:

capture

paulburkinshaw commented 8 years ago

Fixed artist tiles, truncated to 22 chars with elipses