Merge lp:~barry/launchpad/440220-slot into lp:launchpad

Proposed by Barry Warsaw
Status: Merged
Merged at revision: not available
Proposed branch: lp:~barry/launchpad/440220-slot
Merge into: lp:launchpad
Diff against target: 38 lines
2 files modified
lib/canonical/launchpad/icing/style-3-0.css (+7/-1)
lib/lp/app/templates/base-layout-macros.pt (+2/-2)
To merge this branch: bzr merge lp:~barry/launchpad/440220-slot
Reviewer Review Type Date Requested Status
Paul Hummer (community) ui Approve
Michael Nelson (community) ui Approve
Abel Deuring (community) code Approve
Review via email: mp+12786@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Barry Warsaw (barry) wrote :

 reviewer adeuring code
 reviewer michael.nelson ui
 reviewer rockstar ui

= Summary =

Bug 440220 describes an annoying problem with the interaction between the
registering slot and the application tabs. The registering slot is where
information, such as who reported a bug and when, goes. The app tabs are the
"Overview, Branches..." facet links that appear at the top of the page.

If the registering slot contents are long, they'll overrun the tabs and cause
them to wrap.

== Proposed fix ==

Tweak the CSS to nowrap the app tabs, and bump the registering slot down a bit
so even long contents won't overrun the tabs.

== Pre-implementation notes ==

None too much, though I had several discussions with Michael and Paul tweaking
the specifics of the ui changes.

== Implementation details ==

The only implementation detail of note is that I had to add a CSS class called
'facetmenu' to the <ul> which contains the app tabs. Then I was able to apply
a white-space: nowrap to that class.

== Tests ==

None, this is only a visible change.

== Demo and Q/A ==

In various browsers with windows of various widths, visit these pages:

 * https://bugs.launchpad.dev/firefox/+bug/1
 * https://bugs.launchpad.dev/firefox

You can also try changing name12's display name to something insanely long and
visit the same pages to see that they still look good.

These are captured in screenshots on the bug report. The images in comments
13 through 16 are from the changes under review:

 * http://launchpadlibrarian.net/32863199/ff-2em.png
 * http://launchpadlibrarian.net/32863206/ff-bug-2em.png
 * http://launchpadlibrarian.net/32863216/opera-ff-2em.png
 * http://launchpadlibrarian.net/32863217/opera-ff-bug-2em.png

= Launchpad lint =

Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.

Linting changed files:
  lib/lp/app/templates/base-layout-macros.pt
  lib/canonical/launchpad/icing/style-3-0.css

Revision history for this message
Abel Deuring (adeuring) :
review: Approve (code)
Revision history for this message
Michael Nelson (michael.nelson) wrote :
review: Approve (ui)
Revision history for this message
Paul Hummer (rockstar) :
review: Approve (ui)

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-09-28 13:56:17 +0000
3+++ lib/canonical/launchpad/icing/style-3-0.css 2009-10-02 14:20:28 +0000
4@@ -543,12 +543,18 @@
5 color: #747474;
6 }
7
8+/* Facet menu, a.k.a. application tabs */
9+.facetmenu {
10+ width: 100%;
11+ white-space: nowrap;
12+}
13 /* Registering slot */
14 .registering {
15 float: right;
16- padding-top: 10px;
17 font-size: 85%;
18 color: #666;
19+ position: relative;
20+ top: 2em;
21 }
22
23 /* Side content exceptions */
24
25=== modified file 'lib/lp/app/templates/base-layout-macros.pt'
26--- lib/lp/app/templates/base-layout-macros.pt 2009-10-01 11:00:04 +0000
27+++ lib/lp/app/templates/base-layout-macros.pt 2009-10-02 14:20:28 +0000
28@@ -300,8 +300,8 @@
29
30 <metal:application-buttons define-macro="application-buttons">
31 <!-- Application Menu -->
32- <ul
33- tal:define="facetmenu view/menu:facet">
34+ <ul class="facetmenu"
35+ tal:define="facetmenu view/menu:facet">
36 <tal:facet repeat="link facetmenu">
37 <li
38 tal:condition="python: link.enabled and link.selected"