Merge lp:~benji/launchpad/bug-735196 into lp:launchpad

Proposed by Benji York
Status: Merged
Approved by: Benji York
Approved revision: no longer in the source branch.
Merged at revision: 13309
Proposed branch: lp:~benji/launchpad/bug-735196
Merge into: lp:launchpad
Diff against target: 14 lines (+4/-0)
1 file modified
lib/canonical/launchpad/icing/style-3-0.css (+4/-0)
To merge this branch: bzr merge lp:~benji/launchpad/bug-735196
Reviewer Review Type Date Requested Status
j.c.sackett (community) Approve
Review via email: mp+65983@code.launchpad.net

Commit message

[r=jcsackett][bug=735196] clip overly-long strings of non-whitespace characters in announcements

Description of the change

Bug 735196 is about the announcements portlet sometimes having long
strings of non-whitespace characters (like section headers) that break
out of the page element. Since those strings of characters are
essentially information-free and announcements that use them are not
formatted to fit in the portlet's preview anyway (there is a link to the
full version), we (Huw and I) decided that simply clipping text that
overflows the bounds of the portlet is the best compromise.

Lint: there was so much lint in the one CSS file that I changed that I'm
not even going to think about fixing it in this branch.

To post a comment you must log in.
Revision history for this message
j.c.sackett (jcsackett) wrote :

Looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/canonical/launchpad/icing/style-3-0.css'
2--- lib/canonical/launchpad/icing/style-3-0.css 2011-06-17 17:33:14 +0000
3+++ lib/canonical/launchpad/icing/style-3-0.css 2011-06-27 13:34:59 +0000
4@@ -1456,6 +1456,10 @@
5 }
6 .announcements li {
7 margin-bottom: 0.5em;
8+ /* Some announcements have long strings of characters as section headers
9+ * and such. Since they don't have whitespace they can't wrap, so they
10+ * would break out of their container if we didn't clip them here. */
11+ overflow: hidden;
12 }
13 .announcements li strong,
14 .announcements li a {