giladgray / WhichBus

Which bus will get me where I need to go now?
9 stars 1 forks source link

truncate stop names/descriptions #1

Open giladgray opened 12 years ago

giladgray commented 12 years ago

don't truncate them on desktop/tablet. but that happens in ruby and layout happens at runtime. uh oh.

dalanmiller commented 12 years ago

Can an extra parameter be passed into the query string &type=desktop or something? I think you could either check for the user-agent header or the page max-width?

giladgray commented 12 years ago

would like to use text-overflow: ellipsis to do this so it happens magically without javascript.