Long bug title will overrun bug report title

Bug #2004508 reported by Nathan Teodosio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

This is very noticeable in bugs of errors.ubuntu.com, whose titles can be very, very long and without spaces or anything recognizable as word breaks (e.g. LP: #2004459).

Is there something better than a "word-wrap: anywhere" to solve this?

Tags: lp-bugs ui
Revision history for this message
Nathan Teodosio (nteodosio) wrote :
Revision history for this message
Colin Watson (cjwatson) wrote (last edit ):

We could use `lp.app.browser.stringformatter.add_word_breaks`, maybe (normally used via `fmt:break-long-words`)?

    """Insert manual word breaks into a string.

    The word may be entity escaped, but is not expected to contain
    any HTML tags.

    Breaks are inserted at least every 7 to 15 characters,
    preferably after punctuation.
    """

That would suit this use case, I think.

Revision history for this message
Colin Watson (cjwatson) wrote :

There's another problem here that makes things more complicated. Bug titles are editable using a JavaScript widget; so if we added break-long-words, we'd have to implement parallel functionality in the JS inline editor widget. Without frontend experts on staff, this isn't terribly appealing.

So how about we just ellipsize long titles instead? The JS widget already supports that, and it would basically just be a matter of passing `truncate_lines=1` when initializing the `TextLineEditorWidget`. A few other places in Launchpad already do that. Editing the title would show the full value as it already does, and we could possibly also arrange for mouseover to show the full title if it doesn't already. Would that be OK?

tags: added: lp-bugs
Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Nathan Teodosio (nteodosio) wrote :

The title being such a important part of the report, I'd be weary to lose information about it. It would be better to be ugly than to be cropped.

> we could possibly also arrange for mouseover to show the full title

A good compromise in my opinion, but do you know if this would work for more limited browsing? E.g. console browsers such as Links? I tested this is the team membership icons in my profile page, and the tool-tips "Member of ..." don't show there.

Would that affect bug listings (e.g. https://bugs.launchpad.net/~username and also assigned bugs in progress in https://launchpad.net/~username) that also suffer from the issue?

Do you know if this is independent of the window title? I'm thinking about https://bugs.launchpad.net/launchpad/+bug/942054/comments/6.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.