#84 √ hold
Kevin Rose

Long URLs Extend Past Forum Container Into Minifeed

Reported by Kevin Rose | June 4th, 2008 @ 08:38 AM | in Miscellaneous polish

Using Firefox 2.

Comments and changes to this ticket

  • Kevin Rose

    Kevin Rose June 4th, 2008 @ 11:28 AM

    • → Assigned user changed from “” to “Michael Hartl”
  • Michael Hartl

    Michael Hartl June 4th, 2008 @ 12:52 PM

    This is a little trickier than it looks, since it can't be done in CSS. We need something equivalent to the wordwrap function in PHP, which Rails doesn't have by default. (Rails has word_wrap, but unfortunately it's not quite the same thing---it won't cut a word on anything but whitespace.)

    This ticket is a good candidate for an Insoshi community member contribution; I'll see if I can rope someone in. :-)

  • Michael Hartl

    Michael Hartl June 4th, 2008 @ 01:35 PM

    Actually, it's ever harder than I thought; if you want to allow formatted text, you have to parse it and make sure you're not breaking, say, an href inside a link. The problem then reduces to parsing general XHTML---not good.

    A better solution might be to handle it in the browser by creating scroll bars if the text is too long. I think jQuery can do this. We'll definitely take a look at it.

  • Michael Hartl

    Michael Hartl June 17th, 2008 @ 04:34 PM

    • → Milestone cleared.

    As a stopgap, there's a CSS trick to suppress the rendering of letters that run too far. I think that's good enough for now. (Even Facebook uses this solution in places.)

  • Michael Hartl

    Michael Hartl June 17th, 2008 @ 04:36 PM

    • → Milestone changed from “” to “Miscellaneous polish”
  • Michael Hartl

    Michael Hartl September 16th, 2008 @ 10:36 AM

    • → State changed from “new” to “hold”
    • → Tag changed from “” to “bugs css design user-interface”

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Attachments