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
=== modified file 'lib/canonical/launchpad/icing/style-3-0.css'
--- lib/canonical/launchpad/icing/style-3-0.css 2011-06-17 17:33:14 +0000
+++ lib/canonical/launchpad/icing/style-3-0.css 2011-06-27 13:34:59 +0000
@@ -1456,6 +1456,10 @@
1456 }1456 }
1457.announcements li {1457.announcements li {
1458 margin-bottom: 0.5em;1458 margin-bottom: 0.5em;
1459 /* Some announcements have long strings of characters as section headers
1460 * and such. Since they don't have whitespace they can't wrap, so they
1461 * would break out of their container if we didn't clip them here. */
1462 overflow: hidden;
1459 }1463 }
1460.announcements li strong,1464.announcements li strong,
1461.announcements li a {1465.announcements li a {