Closed Bug 980115 Opened 10 years ago Closed 10 years ago

Social API status buttons make many other toolbar-buttons vertically squished

Categories

(Firefox :: Theme, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 30
Tracking Status
firefox29 + verified
firefox30 --- verified
firefox31 --- verified

People

(Reporter: dholbert, Assigned: mixedpuppy)

References

(Blocks 1 open bug)

Details

(Whiteboard: [Australis:P3-])

Attachments

(2 files, 1 obsolete file)

STR:
 1. Visit https://talkilla.mozillalabs.com/
 2. Click "Activate Talkilla"
 3. [optional] Enter "Customize" mode, and experiment putting the talkilla icon on the toolbar vs. in the hamburger menu.

ACTUAL RESULTS:
When Talkilla icon goes on the toolbar, most of the toolbar gets vertically squashed. In particular, these are squished:
 - The back button
 - The entire URL bar (and the lock icon)
 - The search bar (its contents nearly overflow, outside of the search box)
 - The download "downarrow" icon
 - The home icon

EXPECTED RESULTS:
 Nothing should be squished.
(I'm going to guess that this is Australis-related, but I'm not sure)
(In reply to Daniel Holbert [:dholbert] from comment #1)
> (I'm going to guess that this is Australis-related, but I'm not sure)

what version of Firefox are you using?
Flags: needinfo?(dholbert)
Sorry -- up-to-date nightly. 30.0a1 (2014-03-05)
Flags: needinfo?(dholbert)
I think the social API buttons have a max-height on their icon, and that's what's triggering this. Shane, can you look at this? I'm pretty swamped right now. See bug 967115 for more context.
Flags: needinfo?(mixedpuppy)
Component: Toolbars and Customization → Theme
Whiteboard: [Australis:P3-]
Attached patch fix status button sizing (obsolete) — Splinter Review
fixes button sizing in toolbar, menu panel, and customization.  tested osx/win7/linux.
Attachment #8387997 - Flags: review?(gijskruitbosch+bugs)
Flags: needinfo?(mixedpuppy)
(In reply to Shane Caraveo (:mixedpuppy) from comment #6)
> Created attachment 8387997 [details] [diff] [review]
> fix status button sizing
> 
> fixes button sizing in toolbar, menu panel, and customization.  tested
> osx/win7/linux.

How do I test the badge container?
Flags: needinfo?(mixedpuppy)
(In reply to :Gijs Kruitbosch from comment #7)
> (In reply to Shane Caraveo (:mixedpuppy) from comment #6)
> > Created attachment 8387997 [details] [diff] [review]
> > fix status button sizing
> > 
> > fixes button sizing in toolbar, menu panel, and customization.  tested
> > osx/win7/linux.
> 
> How do I test the badge container?

install the "demo social provider" from http://mixedpuppy.github.io/socialapi-directory/ and click the "login" button in its sidebar.  the status button will get a badge.  You can then move the button around to different area's to see how it looks.  The icon used by the demo is only 16px so it will look pixilated in the menu panel, but otherwise it should correct.
Flags: needinfo?(mixedpuppy)
(In reply to Shane Caraveo (:mixedpuppy) from comment #8)
> (In reply to :Gijs Kruitbosch from comment #7)
> > (In reply to Shane Caraveo (:mixedpuppy) from comment #6)
> > > Created attachment 8387997 [details] [diff] [review]
> > > fix status button sizing
> > > 
> > > fixes button sizing in toolbar, menu panel, and customization.  tested
> > > osx/win7/linux.
> > 
> > How do I test the badge container?
> 
> install the "demo social provider" from
> http://mixedpuppy.github.io/socialapi-directory/ and click the "login"
> button in its sidebar.

This doesn't do anything for me and instead shows:

JavaScript error: http://mixedpuppy.github.io/socialapi-demo/sidebar.js, line 9: JSON.parse: unexpected character at line 1 column 1 of the JSON data


in the console.
Flags: needinfo?(mixedpuppy)
Comment on attachment 8387997 [details] [diff] [review]
fix status button sizing

This doesn't look obviously wrong code-wise, but I'm uncomfortable giving this r+ without being able to test the badging, which readds some max-height bits (albeit restricted to the panel)
Attachment #8387997 - Flags: review?(gijskruitbosch+bugs) → feedback+
Comment on attachment 8387997 [details] [diff] [review]
fix status button sizing

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

Well, the good news is it works now that I can test it. I like things that work. :-)

PS: please be mindful of 29 and ask for approval for uplift once this has hit m-c.
Attachment #8387997 - Flags: feedback+ → review+
Flags: needinfo?(mixedpuppy)
This fixes the button icon in the menu panel without max-height, primary fix is removing flex (seems to work elsewhere), but i've also fixed the label wrapping.  We can stay with previous patch or (my preference) use this one.
Assignee: nobody → mixedpuppy
Attachment #8388855 - Flags: review?(gijskruitbosch+bugs)
Comment on attachment 8388855 [details] [diff] [review]
fix status button sizing V2

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

Sweet! :-)
Attachment #8388855 - Flags: review?(gijskruitbosch+bugs) → review+
Comment on attachment 8387997 [details] [diff] [review]
fix status button sizing

obsoleted by V2
Attachment #8387997 - Attachment is obsolete: true
https://hg.mozilla.org/mozilla-central/rev/86aebfb124f6
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 30
Shane, can you ask for uplift on this one? Thanks! :-)
Totally meant to needinfo for comment #17... :-(
Flags: needinfo?(mixedpuppy)
Comment on attachment 8388855 [details] [diff] [review]
fix status button sizing V2

[Approval Request Comment]
Bug caused by (feature/regressing bug #): social api status buttons
User impact if declined: toolbar buttons appear squished
Testing completed (on m-c, etc.): fx-team and m-c
Risk to taking this patch (and alternatives if risky): low
String or IDL/UUID changes made by this patch: none
Attachment #8388855 - Flags: approval-mozilla-aurora?
Flags: needinfo?(mixedpuppy)
Summary: "Activate Talkilla" button (using Social API) makes many other toolbar-buttons vertically squished → Social API status buttons make many other toolbar-buttons vertically squished
Attachment #8388855 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
[bugday-20140416]

Hi,

I was able to reproduce the issue in Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0 ID:20140305030201 CSet: e5b09585215f.
I can confirm that this is now fixed in:
- latest nightly: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 ID:20140415030203 CSet: 5b6e82e7bbbf

- latest aurora: Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0 ID:20140415004003 CSet: f14047fa8d63

-latest beta:  Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 ID:20140414143035 CSet: 3a4f085a6398

I'm not able to change the global status to Verified, so I'll just change the flags for the relevant versions.

Cheers,
Francesca
Thanks!
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: