Closed Bug 775191 Opened 12 years ago Closed 10 years ago

bookmarks toolbar items oversized

Categories

(Firefox :: Theme, defect)

14 Branch
defect
Not set
trivial

Tracking

()

RESOLVED DUPLICATE of bug 734326

People

(Reporter: bugz, Assigned: nssreedevipillai)

References

Details

(Whiteboard: [mentor=darkowlzz][lang=css])

Attachments

(2 files, 10 obsolete files)

User Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1
Build ID: 20120713134347

Steps to reproduce:

moved the "bookmarks toolbar items" from the "bookmarks toolbar" up into the main toolbar where the location bar is.


Actual results:

all the items have no top or bottom margins, so they become oversized, please see screenshot for illustration


Expected results:

they should not stretch to the edge of the toolbar
Severity: normal → trivial
OS: Windows Vista → All
Hardware: x86_64 → All
Confirmed on
http://hg.mozilla.org/releases/mozilla-release/rev/e5728a4e106c
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1 ID:20120713134347
Blocks: 735691
Status: UNCONFIRMED → NEW
Component: Untriaged → Theme
Ever confirmed: true
See Also: → 775322
I would like to work on this bug, Can you please assign this?
(In reply to Seetu from comment #2)
> I would like to work on this bug, Can you please assign this?

Sure thing. 

First check if you can still reproduce this with the Australis redesign on Nightly.
Assignee: nobody → nssreedevipillai
Status: NEW → ASSIGNED
I could reproduce it, Can you give me some more details about this bug, In which file will be the bug present?. Can you please help me with this.
Hi Seetu,
After our irc discussion and some searching, I found that you need to make changes to browser.css [1][2][3] of the respective platforms (which is I guess, all the platforms).

I am on OS X, I added some values to the margin-top and the buttons appeared to become a bit small. I am adding 2 attachments, which would perhaps help you see the difference.

[1]: http://mxr.mozilla.org/mozilla-central/source/browser/themes/osx/browser.css#169 (for OS X)
[2]: http://mxr.mozilla.org/mozilla-central/source/browser/themes/linux/browser.css#78 (for Linux)
[3]: http://mxr.mozilla.org/mozilla-central/source/browser/themes/windows/browser.css#284 (for Windows)

I have tested [1]. [2] & [3] should be right for respective platforms too.
Attached image Before adding margin. (obsolete) —
Attached image After adding margin. (obsolete) —
Whiteboard: [mentor=darkowlzz][lang=css]
Attached patch patch.patch (obsolete) — Splinter Review
Attachment #8360437 - Flags: review?(indiasuny000)
(In reply to Seetu from comment #8)
> Created attachment 8360437 [details] [diff] [review]
> patch.patch

The patch doesn't contains your changes.
Read this [1] to learn how to create a proper patch.

Also, I haven't given a r+ (review+) yet. Once the patch is ready for checkin, you could add `r` to it, not now.

[1]: https://developer.mozilla.org/en-US/docs/Mercurial_FAQ#How_can_I_generate_a_patch_for_somebody_else_to_check-in_for_me.3F
Attachment #8360437 - Flags: review?(indiasuny000)
Attached patch bugpatch.patch (obsolete) — Splinter Review
Attachment #8361114 - Flags: review?(indiasuny000)
Comment on attachment 8361114 [details] [diff] [review]
bugpatch.patch

Review of attachment 8361114 [details] [diff] [review]:
-----------------------------------------------------------------

Good start.

This patch tries to fix the oversized bookmarks toolbar items in Linux.
Could you try for Windows and OS X too?

Also, I haven't given r+ yet. You can have r=me once you get a r+.

::: browser/themes/linux/browser.css
@@ +77,5 @@
>  #personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder {
> +  margin-left: 0;
> +  margin-right:10px;
> +  margin-top:10px;
> +  margin-bottom:10px;

We only need to set margin for top and bottom, keeping left and right 0 as before.
I would like you to use Two-value syntax of margin, like
margin: 4px 0px;

After fiddling a bit on my machine and comparing various margin sizes, I found that 4px for top and bottom is good enough.
Attachment #8361114 - Flags: review?(indiasuny000) → review-
Attachment #8360437 - Attachment is obsolete: true
Attachment #8359749 - Attachment is obsolete: true
Attachment #8359750 - Attachment is obsolete: true
Attached patch LinuxFix.patch (obsolete) — Splinter Review
Attachment #8361744 - Flags: review?(indiasuny000)
Comment on attachment 8361744 [details] [diff] [review]
LinuxFix.patch

Review of attachment 8361744 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks! That does the job for linux.

I am giving you r+ on this patch. Now you can submit this patch again with r=me :)
No need to ask for review on resubmission of this patch again.

I would suggest you to submit separate patches for Windows and OS X.

Good Luck!
Attachment #8361744 - Flags: review?(indiasuny000) → review+
Attachment #8361114 - Attachment is obsolete: true
Attachment #8361744 - Attachment description: patch2.patch → LinuxFix.patch
Attached patch Linux.patch (obsolete) — Splinter Review
Attached patch windows.patch (obsolete) — Splinter Review
Attachment #8362229 - Flags: review?(indiasuny000)
Attached patch Osx.patch (obsolete) — Splinter Review
Attachment #8361744 - Attachment is obsolete: true
Comment on attachment 8362232 [details] [diff] [review]
Osx.patch

Review of attachment 8362232 [details] [diff] [review]:
-----------------------------------------------------------------

Looks fine on OS X.
Attachment #8362232 - Flags: review+
Attachment #8362085 - Flags: review+
Attached patch Osx.patch (obsolete) — Splinter Review
Attachment #8362236 - Flags: review?(indiasuny000)
Attachment #8362232 - Attachment is obsolete: true
Attachment #8362085 - Attachment description: patch2.patch → Linux.patch
Attachment #8362236 - Flags: review?(indiasuny000) → review+
Attached patch windows.patch (obsolete) — Splinter Review
Attachment #8362522 - Flags: review?(indiasuny000)
Attachment #8362229 - Attachment is obsolete: true
Attachment #8362229 - Flags: review?(indiasuny000)
Comment on attachment 8362522 [details] [diff] [review]
windows.patch

Review of attachment 8362522 [details] [diff] [review]:
-----------------------------------------------------------------

This looks fine :)
Attachment #8362522 - Flags: review?(indiasuny000) → review+
Attachment #8362522 - Attachment description: windows2.patch → windows.patch
Keywords: checkin-needed
Doesn't have review from a theme peer. Also, can you please fold these patches together when this is ready to land?
Keywords: checkin-needed
Comment on attachment 8362236 [details] [diff] [review]
Osx.patch

I'll review the patches. 

Sunny, thanks for your help but in the future, please don't mark r+ if you aren't a peer for the module in question. Feel free to use feedback+ though.

Also, we should indicate in the commit message that this conflicts with Australis so it gets backed out of Holly to avoid merge issues.
Attachment #8362236 - Flags: review?(MattN+bmo)
Whiteboard: [mentor=darkowlzz][lang=css] → [lang=css]
Sunny, it was helpful for you to mentor the bug and there was nothing wrong with that. Patches still have to follow the Firefox Code Review[1] rules though.

[1] https://wiki.mozilla.org/Firefox/Code_Review
Whiteboard: [lang=css] → [mentor=darkowlzz][lang=css]
Thanks Matthew.

Seetu, fold the 3 patches into a single patch, removing `r=me`. Once done, ask MattN for review.

I won't be available for a week. Hope to see your patch land soon. :)
Attached patch Bugfix.patchSplinter Review
Attachment #8363621 - Flags: review?(MattN+bmo)
Attachment #8362085 - Attachment is obsolete: true
Attachment #8362522 - Attachment is obsolete: true
Comment on attachment 8363621 [details] [diff] [review]
Bugfix.patch

Review of attachment 8363621 [details] [diff] [review]:
-----------------------------------------------------------------

All of the changes you made also affect when the bookmarks items are in their default toolbar but the bug seems to be about when they're moved outside of it e.g. to the nav-bar.

I don't think we should bother fixing this before implementing bug 734326 since it will change how this works anyways and I believe will make this case look much better. Thanks for your time on this. Hopefully you can find another bug of interest to you. (bug 734326 is not so small).

::: browser/themes/windows/browser.css
@@ +274,5 @@
>  /* ::::: bookmark buttons ::::: */
>  
>  toolbarbutton.bookmark-item,
>  #personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder {
> +  margin: 7px 0px;

This increases the height of the Bookmark toolbar and adds too much margin when the items are there (in their default position)
Attachment #8363621 - Flags: review?(MattN+bmo) → review-
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Attachment #8362236 - Attachment is obsolete: true
Attachment #8362236 - Flags: review?(MattN+bmo)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: