Closed Bug 452906 Opened 17 years ago Closed 17 years ago

Long URLs smash the right column width

Categories

(Bugzilla :: User Interface, defect, P2)

defect

Tracking

()

RESOLVED FIXED
Bugzilla 3.2

People

(Reporter: alqahira, Assigned: guy.pyrzak)

References

()

Details

Attachments

(1 file, 1 obsolete file)

Sort of the flip side of bug 452824; if there's actually a URL in the URL field, the field disappears and becomes an "inline" link with the URL as the link text. Unfortunately, a long URL, like that in bug 386143 (or even the shorter URL in bug 452850) make the left column huge and smash the right column into a tiny space (depending on your window size, of course). I think I'd much rather see the URL continue to sit in a text field (with the "URL" label serving as the active link) and have the text field be a bit longer as requested in bug 452824 than have an inline text link. (As another plus, the URL field then remains tabable when it has data in it instead of only when it's empty, making the tab order more stable.)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Note that gecko 1.9 effectively mitigates those example cases by wrapping more aggressively. In opera 9.27 and konqueror 3.5.9 I see those example links ellipsized.
safari 1.x wraps them, but way too late for it to matter, damage is already done.
Maybe put it in a <div> with a overflow: scroll on it, and let it scroll just that field horizontally if someone really wants to see the entire thing. That'd give you a quick indication (via the proportional size of the thumb in most browsers) of how wide the URL really is, too.
My thought was to just truncate it (FILTER truncate) and use the title attribute to show the full URL. This is a more discoverable than the past method of making the URL label a link, which is why I changed how this worked. For new users the label being a link to the url in the field was not very discoverable.
that would probably work. There's a truncate method that does and elipsis in the middle, right?
Yes, truncate with elipsis. Using title might not work, though--titles are also truncated by the browser on display.
Assignee: nobody → ui
Component: Bugzilla: Other b.m.o Issues → User Interface
Product: mozilla.org → Bugzilla
QA Contact: other-bmo-issues → default-qa
Version: other → 3.2
(In reply to comment #5) > that would probably work. There's a truncate method that does and elipsis in > the middle, right? Yes, that's the best solution. Modern browsers, such as Firefox 3, no longer truncates long titles. I don't remember if Opera 9.50 wraps long titles too or not. I think URLs shouldn't be longer than the current width of the text field, so that column widths do no depend on whether there is a URL set or not.
Priority: -- → P2
Assignee: ui → guy.pyrzak
Attachment #336797 - Flags: review?(mkanat)
Attachment #336797 - Flags: review?(mkanat) → review-
Comment on attachment 336797 [details] [diff] [review] fix for URL breaking the column widths truncate then html-filter, not the other way around.
Attachment #336797 - Attachment is obsolete: true
Attachment #336800 - Flags: review?(mkanat)
Comment on attachment 336800 [details] [diff] [review] fix for URL breaking the column widths v2 I just looked, and there is no truncate filter, but there is a truncate scalar_op that we added, and you can add an elipsis in there, too.
Attachment #336800 - Flags: review?(mkanat) → review-
(In reply to comment #11) > (From update of attachment 336800 [details] [diff] [review]) > I just looked, and there is no truncate filter, but there is a truncate > scalar_op that we added, and you can add an elipsis in there, too. wrong. http://template-toolkit.org/docs/manual/Filters.html#section_truncate_length_dots_
Comment on attachment 336800 [details] [diff] [review] fix for URL breaking the column widths v2 pyrzak showed me the truncate filter in the tt docs.
Attachment #336800 - Flags: review- → review+
Flags: approval?
Flags: approval3.2?
Target Milestone: --- → Bugzilla 3.2
Flags: approval?
Flags: approval3.2?
Flags: approval3.2+
Flags: approval+
Checking in template/en/default/bug/edit.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/edit.html.tmpl,v <-- edit.html.tmpl new revision: 1.131; previous revision: 1.130 done
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Checking in template/en/default/bug/edit.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/edit.html.tmpl,v <-- edit.html.tmpl new revision: 1.125.2.6; previous revision: 1.125.2.5 done
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: