Merge lp:~mars/launchpad/fix-subscribers-list-484848 into lp:launchpad/db-devel

Proposed by Māris Fogels
Status: Merged
Merged at revision: not available
Proposed branch: lp:~mars/launchpad/fix-subscribers-list-484848
Merge into: lp:launchpad/db-devel
Diff against target: 21 lines (+11/-0)
1 file modified
lib/canonical/launchpad/icing/style-3-0.css (+11/-0)
To merge this branch: bzr merge lp:~mars/launchpad/fix-subscribers-list-484848
Reviewer Review Type Date Requested Status
Martin Albisetti (community) Approve
Deryck Hodge (community) code Approve
Canonical Launchpad Engineering Pending
Review via email: mp+15154@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Māris Fogels (mars) wrote :

Hi,

This branch attempts to fix the Bug Subscribers layout issues encountered in Bug #484848.

I added a single CSS declaration for the subscribers list so that the icons display inline, on the correct line. This has the drawback that text wrapping doesn't work as well as it did before, but it appears to be worth the trade off to fix #484848.

We may find a better approach in the future, at which time these changes can be backed out.

Maris

Revision history for this message
Deryck Hodge (deryck) wrote :

Hi, mars.

Looks good. Thanks!

Not sure we need the XXX since this bug will be fixed and wrapping will never bother us, given that we truncate the lines. The comment is nice to clarify, but not sure we need the XXX.

Cheers,
deryck

review: Approve (code)
Revision history for this message
Deryck Hodge (deryck) :
review: Approve (code)
Revision history for this message
Martin Albisetti (beuno) wrote :

Looks good to land, thanks for tackling this and filing the bug.

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 2009-11-21 09:12:43 +0000
3+++ lib/canonical/launchpad/icing/style-3-0.css 2009-11-23 15:25:36 +0000
4@@ -956,6 +956,17 @@
5 .vertical .sprite:first-line {
6 line-height: 12px;
7 }
8+
9+/* XXX: mars 2009-11-22 bug=484848
10+ Override the styling in the Bug Subscribers portlet. Trying to display
11+ as inline-block is of little use, as the maximum name width is 20 characters,
12+ and we are unlikely to wrap the text. Not to mention that setting the display
13+ in this way breaks the icons.
14+*/
15+body.tab-bugs #portlet-subscribers .sprite {
16+ display: inline;
17+}
18+
19 .sprite-after {padding: 2px 18px 0 0;}
20
21 /* XXX: EdwinGrubbs 2009-07-27 bug=405476

Subscribers

People subscribed via source and target branches

to status/vote changes: