Closed
Bug 452906
Opened 17 years ago
Closed 17 years ago
Long URLs smash the right column width
Categories
(Bugzilla :: User Interface, defect, P2)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.2
People
(Reporter: alqahira, Assigned: guy.pyrzak)
References
()
Details
Attachments
(1 file, 1 obsolete file)
|
1.00 KB,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
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.)
| Reporter | ||
Updated•17 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 1•17 years ago
|
||
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.
Comment 3•17 years ago
|
||
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.
| Assignee | ||
Comment 4•17 years ago
|
||
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.
Comment 5•17 years ago
|
||
that would probably work. There's a truncate method that does and elipsis in the middle, right?
Comment 6•17 years ago
|
||
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
Comment 7•17 years ago
|
||
(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.
Updated•17 years ago
|
Priority: -- → P2
| Assignee | ||
Comment 8•17 years ago
|
||
Assignee: ui → guy.pyrzak
Attachment #336797 -
Flags: review?(mkanat)
Updated•17 years ago
|
Attachment #336797 -
Flags: review?(mkanat) → review-
Comment 9•17 years ago
|
||
Comment on attachment 336797 [details] [diff] [review]
fix for URL breaking the column widths
truncate then html-filter, not the other way around.
| Assignee | ||
Comment 10•17 years ago
|
||
Attachment #336797 -
Attachment is obsolete: true
Attachment #336800 -
Flags: review?(mkanat)
Comment 11•17 years ago
|
||
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-
| Assignee | ||
Comment 12•17 years ago
|
||
(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 13•17 years ago
|
||
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+
Updated•17 years ago
|
Flags: approval?
Flags: approval3.2?
Target Milestone: --- → Bugzilla 3.2
Updated•17 years ago
|
Flags: approval?
Flags: approval3.2?
Flags: approval3.2+
Flags: approval+
| Assignee | ||
Comment 14•17 years ago
|
||
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
| Assignee | ||
Comment 15•17 years ago
|
||
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.
Description
•