Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Somehow the width of the comments was lost — and now comments are only as wide as the content makes them.
Comment | File | Size | Author |
---|---|---|---|
#22 | BartikCommentsChromium10.0.617.0.Linux_.png | 64.34 KB | Tor Arne Thune |
#22 | BartikCommentsFirefox3.6.13.Linux_.png | 62.74 KB | Tor Arne Thune |
#19 | comments-ie7-patch-14.png | 95.79 KB | markabur |
#19 | comments-ff3-patch-14.png | 34.22 KB | markabur |
#19 | 1000610-bartik-comment-width-4.patch | 1.51 KB | markabur |
Comments
Comment #1
markabur CreditAttribution: markabur commentedLooks like it was a side effect of #895898: Comment user picture can overflow its container. Quick patch attached, minimally tested.
Comment #2
amc CreditAttribution: amc commentedComment #3
Jeff Burnz CreditAttribution: Jeff Burnz commented#1, won't work in IE, needs an override, but does work in Firefox, Opera and Chrome. I am not sure this can be made to work in IE...
Comment #4
Shyamala CreditAttribution: Shyamala commentedThe Patch for style.css works on Chrome, Firefox and IE 8 - even without the patch for ie.css. Have not tested the same on lower versions of IE.
Comment #5
Jeff Burnz CreditAttribution: Jeff Burnz commentedYeah, it works in IE8, but not IE6/7 - meaning the comments are still shrunken to fit the width of the text, I overrode the width: 100%; with width: auto; for IE6/7
Comment #6
webchickThis is a pretty silly problem.
Should I roll back #895898: Comment user picture can overflow its container while we get this figured out? Or does it feel close?
Comment #7
Jeff Burnz CreditAttribution: Jeff Burnz commentedI dont think rolling it back is the right answer because that will bring back a much worse issue (if users change the size of the comment-picture the layout will break), whereas this is mere styling issue. That said, no, this is not close to a fix for IE6/7, frankly I think it might be impossible to fix for those browsers - I'll keep working on it. I might need to completely re-write how this works to support the design objective in all browsers, which is not a problem :)
Comment #8
Jeff Burnz CreditAttribution: Jeff Burnz commentedOK, think we have a solution after all. No RTL, needs RTL but good for testing in IE LTR...
Comment #9
markabur CreditAttribution: markabur commentedIt's not pretty, but this works. If we need ie6/7 to give us table-cell behavior, then we give them tables...
Comment #10
Jeff Burnz CreditAttribution: Jeff Burnz commentedIE6 and 7 don't actually get the display:table-cell, for IE6/7 its overridden with inline-block which is triggering the DIV to expand full width, in effect taking advantage of a bug in IE... tricky and not that pretty either, but as you say, it works.
Comment #11
markabur CreditAttribution: markabur commentedRe: #8
- Works without adding table markup, yay!
- It allows the comment-text height to shrink in IE
- The gap between the photo and arrow is larger than in Safari or Firefox.
Re: #9
- Adds tables for layout, boo!
- Comment-text height doesn't shrink shorter than the photo/attribution area
- There is too much space between the comments, need to fix that if we like this approach.
Comment #12
Jeff Burnz CreditAttribution: Jeff Burnz commentedWell, lets not add tables, they could open a whole new can of worms (accessibility), so lets just not go there.
Patch in #8 needs work, it has wrinkles, it was a POC patch for basic testing - it does work in my testing and just needs a bit of adjustment (padding/margins sort of thing) and RTL.
Comment #13
markabur CreditAttribution: markabur commentedSounds fine, Jeff. Also forgot to point out that the comment boxes in #8 are too wide, they extend past the right text edge (see screenshot above).
Comment #14
Jeff Burnz CreditAttribution: Jeff Burnz commentedOK, here is an update on the patch in #8, just a refinement really, same basic principles.
I like this because we have no changes in markup and it actually fixes the issue - there are some small visual differences between various browsers depending on how big the user picture is - when the user-picture is thumbnail size the space between attribution and the bubble is a little bigger in IE6/7 than other browsers. When the user-picture is bigger (e.g. medium size) the difference is imperceptible.
FWIW I actually like the shrinking bubbles, I thought it was kinda neat :)
Comment #16
Jeff Burnz CreditAttribution: Jeff Burnz commentedNot sure what is going on there, dont think the failure is real.
Comment #17
webchick#14: bartik-comment-layout-borked_3.patch queued for re-testing.
Comment #18
jensimmons CreditAttribution: jensimmons commentedI can't take any kind of look at this, because I am 150 miles away from my computer, surfing the bartik issue queue on my phone... But I wanted to say, Jeff, you are an awesome CSS ninja! Thanks for working on hard on Bartik and tackling so many of the most complex issues! :)
Comment #19
markabur CreditAttribution: markabur commentedHere's a screenshot of #14 in IE7. I purposely chose a wider-than-default date format. The differences between IE7 and other browsers are:
(a) The comment text may shrink in height to be shorter than the attribution area, leading to uneven gaps between the comments
(b) The attribution area lets the date expand the width rather than shrinking to fit the photo
Both of these problems existed before the patch, and the patch does fix the width problem, so it's almost RTBC*. Fixing (a) and (b) would require something like patch #9 but that would be a separate issue.
* I just noticed a problem with the 100% width solution for everyone else -- if a user doesn't have a photo then the attribution area shrinks to be too narrow. See the ff3 screenshot. Attached patch takes care of this problem by adding:
Comment #20
jensimmons CreditAttribution: jensimmons commented#19: 1000610-bartik-comment-width-4.patch queued for re-testing.
Comment #21
Jeff Burnz CreditAttribution: Jeff Burnz commentedThe patch in 19 looks good and should be ready to fly for browser testing, will try to get some done today, only days to go so time to rock and roll on these last annoying issues.
Comment #22
Tor Arne Thune CreditAttribution: Tor Arne Thune commentedTested in Chromium 10.0.617.0 and Firefox 3.6.13 on Linux. Solves the issue in these two browser versions. Screenshots attached.
EDIT: The replies in the screenshot aren't replies. Forgot to reply ;)
Comment #23
tim.plunkettRTBC from me pending IE testing.
Comment #24
aspilicious CreditAttribution: aspilicious commentedIE6-IE9 ==> OK
Comment #25
webchickGreat, awesome to have this fixed before release.
Committed to HEAD!