Closed ProLoser closed 8 years ago
I don't have much of an opinion on this because I currently deleted the little badges because where they were appearing was looking pretty bad for me. I think this is an improvement, to put them in its own section. It looks pretty cool, and I wouldn't have to outright delete them anymore.
I think I like them in the order you specified. The first one first, the second one, then the third I kind of dislike. I think adding the name of the site of the badge messes up the spacing IMO, makes it look bad. I can always recognize the badge and if not, just hover on it to see what it's from. You can add a tooltip no? And if not, it'll show it in the status bar what URL it'll go to. That way you can have the cleaner first option.
The appearance they have now was a temp hack due to Github's layout change until I had the time to do a proper ui cleanup (which is what this design is)
Ah ok.
@ProLoser Alright that's better :+1:
The mock ups look good. If you provide an easy means to install this branch to test-drive it, I'll do so, but am pretty busy at the moment, and don't have time to figure out how to build & install on Mac OS X
On windows all I had to do was download a zip of the repo and go to the extensions page in chrome and click load unpacked extension at the top, then point it to the extracted folder.
@blaenk well that was easy, but it appears that the changes shown in the mock-ups/screen-shots haven't been pushed up yet, so installing from the main tracking branch (gh-pages
?) doesn't get me very far.
Nah I was just letting you know to try an extension. I haven't looked at these changes specifically.
I haven't committed the code for these screenshots yet. What you see is what I was able to yield from just fiddling around with the inspector. When I find time this week I'll make the relevant code changes to decorate.js (unless someone wants to give it a crack). That's why i've pasted the source code too (so I can use it later)
Okay guys, I pushed 1.8.0 which has the new dropdown layout. unfortunately, if you move around within a repo it erases the tab. I've tried to track down how Github handles in-repo ajax (they use github.com/defunkt/pjax) but for some reason I can't subscribe to the pjax events properly: https://github.com/ProLoser/Github-Omnibox/blob/43358dc8466ffce0454a6d84563ae9456fc365ff/decorate.js#L148
If this event could be triggered I could retain the badges dropdown during browsing. But since the old behavior has the same limitation I figure might as well push the streamlined layout.
You should probably remove the Github Omnibox
badge/link from your badges list (click on the cog to do this) since the cog now serves as an alternative way to access the options page.
Fixed by 43358dc8466ffce0454a6d84563ae9456fc365ff
I'm playing around with something like this, would be interested in feedback:
@douglasduteil @blaenk @spalger what do you guys think? Would you prefer not to put these into a dropdown menu?
Unfortunately that dropdown style doesn't stretch out causing the extra long badges to shrink a little (tried making their height fixed). Could use the other dropdown style though:
Source code for later:
Here are 3 alternative styles (the image that isn't loading would be the favicon for the respective website):
Source Code for later: