Closed
Bug 450342
Opened 17 years ago
Closed 16 years ago
Diff view overlaps the sidebar content
Categories
(support.mozilla.org :: General, defect, P3)
support.mozilla.org
General
Tracking
(Not tracked)
VERIFIED
FIXED
1.0.2
People
(Reporter: stephend, Assigned: ecooper)
References
()
Details
(Keywords: ue, Whiteboard: sumo_only theme)
Attachments
(3 files)
URL: http://support.mozilla.com/tiki-pagehistory.php?locale=en-US&page=Support+Website+Forums&compare=1&oldver=11&newver=12&diff_style=sidediff
Summary: Diff view overlaps the sidebar content
Step to Reproduce:
Load http://support.mozilla.com/tiki-pagehistory.php?locale=en-US&page=Support+Website+Forums&compare=1&oldver=11&newver=12&diff_style=sidediff
See screenshot
Updated•16 years ago
|
Assignee: nobody → smirkingsisyphus
Severity: major → normal
Target Milestone: --- → 0.8
Assignee | ||
Comment 1•16 years ago
|
||
Ugh. Word wrapping...The solution to this will probably be the same as Bug 413579.
Aside from just clipping the output using overflow, there aren't many options available for CSS, We could use word-break (in CSS3, I believe), but it doesn't work in Firefox 3.
<wbr>'s don't validate and don't work with Opera, so inserting some ​'s is probably the better solution. I think they work on all modern browsers.
Comment 2•16 years ago
|
||
I have no real opinion on the implementation, but your proposal sounds reasonable. Is there a way we could test/demo how that would work?
Assignee | ||
Comment 3•16 years ago
|
||
​ and ­ are both zero-width spaces. So, you throw some in a string every some many characters (every other, every five, whatever), the line will break if it starts to overflow.
http://www.quirksmode.org/oddsandends/wbr.html
The above shows examples of <wbr>, ​, and ­ in action. When I implement it, you could just view it on my dev server first, which is accessible via the web most times.
Comment 4•16 years ago
|
||
Looks like ­ is the best option, no? Either way, the proposal sounds like a good solution!
Updated•16 years ago
|
Target Milestone: 0.8 → 0.9
Updated•16 years ago
|
Target Milestone: 0.9 → 1.1
Comment 5•16 years ago
|
||
Eric, what's the status of this? If you have anything on this but are too busy, I can take it up and implement it. There are a bunch of bugs on word-breaking that'd be good to fix for 1.1
Updated•16 years ago
|
Priority: -- → P3
Updated•16 years ago
|
Target Milestone: 1.1 → 1.0
Updated•16 years ago
|
Target Milestone: 1.0 → 1.0.2
Assignee | ||
Comment 6•16 years ago
|
||
Are diffs broken in general?
I was testing a fix before I realized they look fundamentally different than the original sreenshot now.
Loading the link in the bug summary will display you a diff that looks like the one in this screenshot.
Reporter | ||
Comment 7•16 years ago
|
||
Yeah, that looks broken to me :-(
Comment 8•16 years ago
|
||
The first screenshot is comparing versions 11 and 12. The second screenshot is comparing versions 10 and 12.
Assignee | ||
Comment 9•16 years ago
|
||
https://support.mozilla.com/tiki-pagehistory.php?locale=en-US&page=Support+Website+Forums&compare=1&oldver=13&newver=12&diff_style=sidediff
Huh. Well, aside from me looking dumb, that's great! It means I can post my patch.
Assignee | ||
Comment 10•16 years ago
|
||
This is combination of adding a zero-width break and some CSS rules.
The regex is used because wordwrap kills entities.
Attachment #372767 -
Flags: review?(laura)
Updated•16 years ago
|
Attachment #372767 -
Flags: review?(laura) → review+
Assignee | ||
Comment 11•16 years ago
|
||
r24453/r24454
Aside from making sure diffs stay within bounds, we should be checking that all side-by-side diffs still work.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 12•16 years ago
|
||
Looks good on https://support-stage.mozilla.org/tiki-pagehistory.php?locale=en-US&page=Support+Website+Forums&compare=1&oldver=11&newver=12&diff_style=sidediff.
Verified FIXED -- tested using HTML diff too.
Status: RESOLVED → VERIFIED
Reporter | ||
Updated•16 years ago
|
Keywords: push-needed
Reporter | ||
Updated•16 years ago
|
Keywords: push-needed
Updated•15 years ago
|
Whiteboard: sumo_only theme
You need to log in
before you can comment on or make changes to this bug.
Description
•