Closed
Bug 610773
Opened 14 years ago
Closed 14 years ago
In the Firefox menu items in the right and left panes need to be vertically aligned
Categories
(Firefox :: Theme, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: faaborg, Assigned: Margaret)
References
Details
Attachments
(3 files, 4 obsolete files)
96.11 KB,
image/png
|
Details | |
28.99 KB,
image/png
|
faaborg
:
ui-review+
|
Details |
1.05 KB,
patch
|
dao
:
review+
sdwilsh
:
approval2.0+
|
Details | Diff | Splinter Review |
The first two items in the right and left panes of the Firefox menu should be vertically aligned.
The third item and downward in the right pane will then no longer be aligned due to the first splitter after "Start Private Browsing" but we should start with the first two lined up.
Assignee | ||
Comment 1•14 years ago
|
||
This patch fixes the problem by adding padding to the left pane to match the existing padding in the right pane. While I was modifying the padding, I decided to increase the padding on all sides of the app menu panes to better match this mockup: https://bug583386.bugzilla.mozilla.org/attachment.cgi?id=465479. This would also fix bug 610940. Alex, is this the correct change? I will attach a screenshot.
Assignee: nobody → margaret.leibovic
Attachment #489538 -
Flags: ui-review?(faaborg)
Assignee | ||
Comment 2•14 years ago
|
||
Assignee | ||
Comment 3•14 years ago
|
||
Oh, I just noticed bug 610924. This fix should probably go over there.
Reporter | ||
Comment 4•14 years ago
|
||
>Alex, is this the correct change? I will attach a
>screenshot.
looks good for addressing the vertical alignment of menu items. In terms of padding, we could collapse all of those bugs together, top and bottom should be 9px [1] (this increases to 12 top and 11 bottom). And the icon edge to the left edge should be 7px [2] (this increases to 10 left pane and 9 right pane)
[1] https://bug610924.bugzilla.mozilla.org/attachment.cgi?id=489407
[2] https://bug610940.bugzilla.mozilla.org/attachment.cgi?id=489419
Reporter | ||
Comment 5•14 years ago
|
||
Comment on attachment 489538 [details] [diff] [review]
patch
+ in terms of this specific bug, if we want to tweak padding see the comment above for new values.
Attachment #489538 -
Flags: ui-review?(faaborg) → ui-review+
Assignee | ||
Comment 6•14 years ago
|
||
This patch fixes the alignment issue by fixing the padding in the app menu. It also fixes a bunch of other padding-related bugs, which I'll dupe to this.
Attachment #489538 -
Attachment is obsolete: true
Attachment #492514 -
Flags: review?(dao)
Assignee | ||
Comment 7•14 years ago
|
||
Attachment #489539 -
Attachment is obsolete: true
Attachment #492515 -
Flags: ui-review?(faaborg)
Assignee | ||
Updated•14 years ago
|
Attachment #492515 -
Attachment is patch: false
Assignee | ||
Comment 11•14 years ago
|
||
Sorry, I failed at uploading an image.
Attachment #492515 -
Attachment is obsolete: true
Attachment #492517 -
Flags: ui-review?(faaborg)
Attachment #492515 -
Flags: ui-review?(faaborg)
Reporter | ||
Updated•14 years ago
|
Attachment #492517 -
Flags: ui-review?(faaborg) → ui-review+
Comment 12•14 years ago
|
||
Comment on attachment 492514 [details] [diff] [review]
patch v2
> #appmenuPrimaryPane {
> -moz-margin-end: -1px;
> background-color: rgba(255,255,255,0.5);
> -moz-border-end: 1px solid #c4c4c5;
>- -moz-padding-start: 2px;
>+ padding: 2px;
> }
> #appmenuSecondaryPane {
> background-color: #f1f5fb;
> box-shadow: 1px 0 2px rgb(204,214,234) inset;
> border: 0;
>- padding-top: 5px;
>+ -moz-padding-start: 3px;
>+ -moz-padding-end: 2px;
>+ padding-top: 2px;
>+ padding-bottom: 2px;
> font-family: "Segoe UI Semibold", "Segoe UI", sans-serif;
> }
Hm, maybe #appmenuPrimaryPane shouldn't have -moz-margin-end: -1px;? Not sure what that's doing.
Assignee | ||
Comment 13•14 years ago
|
||
That negative margin makes the secondary pane overlap with the border, which seems strange because that border is being explicitly set. If I delete both the margin and the border rules the menu looks exactly the same. It seems like these rules may just be the result of iterating on the style for the original app menu patch. Should I just delete them?
Also, the border rule in #appmenuSecondaryPane doesn't seem to be necessary either.
Comment 14•14 years ago
|
||
(In reply to comment #13)
> Should I just delete them?
Yes.
Updated•14 years ago
|
Attachment #492514 -
Flags: review?(dao)
Assignee | ||
Comment 15•14 years ago
|
||
Attachment #492514 -
Attachment is obsolete: true
Attachment #493059 -
Flags: review?(dao)
Updated•14 years ago
|
Attachment #493059 -
Flags: review?(dao) → review+
Updated•14 years ago
|
Component: General → Theme
QA Contact: general → theme
Assignee | ||
Updated•14 years ago
|
Attachment #493059 -
Flags: approval2.0?
Updated•14 years ago
|
Attachment #493059 -
Flags: approval2.0? → approval2.0+
Comment 16•14 years ago
|
||
Comment on attachment 493059 [details] [diff] [review]
patch v3
>+ -moz-padding-start: 3px;
>+ -moz-padding-end: 2px;
>+ padding-top: 2px;
>+ padding-bottom: 2px;
padding: 2px;
-moz-padding-start: 3px; ?
Assignee | ||
Comment 17•14 years ago
|
||
(In reply to comment #16)
> padding: 2px;
> -moz-padding-start: 3px; ?
Dão knows more about this than me, but I believe it's less efficient to do this because it would probably evaluate the padding declaration for all sides, then have to override one of those styles with -moz-padding-start.
I checked in the current patch:
http://hg.mozilla.org/mozilla-central/rev/eaecf12fbf6e
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 18•14 years ago
|
||
FWIW, the perf difference should be negligible (and "parse two rules and override one" may actually be slightly more efficient than "parse 4 rules"), so picking the most concise is generally best.
Comment 19•14 years ago
|
||
After the land of this patch there is a grey line between the primary pane and the secondary pane of the Firefox menu that covers the blue shadow. It's a bug?
Assignee | ||
Comment 20•14 years ago
|
||
(In reply to comment #19)
> After the land of this patch there is a grey line between the primary pane and
> the secondary pane of the Firefox menu that covers the blue shadow. It's a bug?
Yes, thanks for noticing this regression. I filed bug 617051 to fix it.
You need to log in
before you can comment on or make changes to this bug.
Description
•