Closed Bug 559978 Opened 14 years ago Closed 14 years ago

Top align icons in places lists (bookmarks, awesomebar)

Categories

(Firefox for Android Graveyard :: Bookmarks, defect)

defect
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mbrubeck, Assigned: mbrubeck)

Details

Attachments

(4 files, 7 obsolete files)

Attached patch patch (obsolete) — Splinter Review
The icons in our bookmark and autocomplete lists are vertically off-center.  This patch centers the icon within the list item.

(It also causes the tags and star to move down slightly.  I can move those back up if desired, but first I want to see if this change is wanted at all.)
Attachment #439650 - Flags: ui-review?(madhava)
Attachment #439650 - Flags: review?(mark.finkle)
Attached image Screenshot: Before
Assignee: nobody → mbrubeck
Status: NEW → ASSIGNED
Attached image Screenshot: After (obsolete) —
I'm a little hesitant to add the extra vbox. We did something like this in the past and moved away from the extra XUL to make XBL creation as streamlined as possible.

Also, can we be more explicit in the CSS? It's suppose to be faster:

.autocomplete-item-label label   -->   .autocomplete-item-label > vbox > label


The new look is nice though. Do we want to change?
Attached patch patch v2: minor CSS changes (obsolete) — Splinter Review
Updated to use more precise selectors e.g. ".autocomplete-item-label > vbox > label".
Attachment #439650 - Attachment is obsolete: true
Attachment #439792 - Flags: ui-review?(madhava)
Attachment #439792 - Flags: review?(mark.finkle)
Attachment #439650 - Flags: ui-review?(madhava)
Attachment #439650 - Flags: review?(mark.finkle)
Actually the display from the results of the awesomebar and the display of the bookmarks are synced.

Madhava, if we choose to apply this do we want to break this behavior or apply also this style to the awesome bar?
Attached patch patch v3: align to top (obsolete) — Splinter Review
At Madhava's request, changing this to align icons to the top of the title text.  I hoped I could get rid of the new vbox for this version, but alas the icon is too tall to sit inline with the title.
Attachment #439792 - Attachment is obsolete: true
Attachment #439951 - Flags: ui-review?(madhava)
Attachment #439951 - Flags: review?(mark.finkle)
Attachment #439792 - Flags: ui-review?(madhava)
Attachment #439792 - Flags: review?(mark.finkle)
Attached image Screenshot: After (updated) (obsolete) —
Attachment #439652 - Attachment is obsolete: true
Attached patch patch v4: align to top (obsolete) — Splinter Review
Minor cleanup: Remove a superfluous line-height (from my debugging), and push the stars back down a couple of pixels.
Attachment #439951 - Attachment is obsolete: true
Attachment #439954 - Flags: ui-review?(madhava)
Attachment #439954 - Flags: review?(mark.finkle)
Attachment #439951 - Flags: ui-review?(madhava)
Attachment #439951 - Flags: review?(mark.finkle)
Comment on attachment 439954 [details] [diff] [review]
patch v4: align to top

We are adding a vbox to the XBL structure which could affect display performance.
Attachment #439954 - Flags: review?(mark.finkle) → review+
Fix those stars.
Attachment #439952 - Attachment is obsolete: true
Vivien mentioned that we could try using some CSS to position the image without needing the extra <vbox>
Attached patch patch v5 (obsolete) — Splinter Review
Fix a bizarre height issue with the "allbookmarks" icon by adding a max-height  (visible as a difference between the Before and After screenshots).  Why is this necessary?  I'm not quite sure, but we have the same thing in the normal bookmark icon CSS from bug 523708.
Attachment #439954 - Attachment is obsolete: true
Attachment #439960 - Flags: ui-review?(madhava)
Attachment #439960 - Flags: review?(mark.finkle)
Attachment #439954 - Flags: ui-review?(madhava)
Attached patch patch v6Splinter Review
Better fix for icon stretching, thanks to Mark Finkle.
Attachment #439960 - Attachment is obsolete: true
Attachment #439964 - Flags: review?(mark.finkle)
Attachment #439960 - Flags: ui-review?(madhava)
Attachment #439960 - Flags: review?(mark.finkle)
Attachment #439964 - Flags: review?(mark.finkle) → review+
pushed:
http://hg.mozilla.org/mobile-browser/rev/7a4d3865b316
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
verified FIXED on builds: 

Mozilla/5.0 (X11; U; Linux armv7l; Nokia N900; en-US; rv:1.9.2.5pre) Gecko/20100420 Namoroka/3.6.5pre Fennec/1.1a2pre

and

Mozilla/5.0 (X11; U; Linux armv6l; en-US; rv:1.9.3a5pre) Gecko/20100420 Namoroka/3.7a5pre Fennec/1.1a2pre
Status: RESOLVED → VERIFIED
Summary: Vertically center icons in places lists (bookmarks, awesomebar) → Top align icons in places lists (bookmarks, awesomebar)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: