Make status summary responsive, relating issue #1025#1046
Make status summary responsive, relating issue #1025#1046mperham merged 6 commits intosidekiq:masterfrom manishval:tweak-dashboard-status-ui
Conversation
|
Screen shot? |
|
This is the desktop view: http://cl.ly/image/1G3P313r1O35 |
|
@manishval You can just drop images right onto the text editor, then they will display inline. |
|
The mobile link doesn't work. |
|
@mperham I think CloudApp is down. Here they are though: DesktopMobile |
|
How about a mobile view which isn't a single column of numbers? |
|
@mperham so display the summary how it is right now with the two columns? |
|
Two columns would look better. On Thu, Jul 11, 2013 at 3:37 PM, manishval notifications@github.com wrote:
|
|
@mperham Here is the mobile version with 2 columns. Let me know if this is acceptable and I will update the pull request. |
|
Yeah, that looks much better. |
|
I have added the updated commit. |
|
Aside from those two minor issues, it looks great. Don't forget to update the changelog to give yourself credit. |
|
@mperham I fixed the two minor issues and made the graphs responsive as well. Whenever the page is loaded, we get the width of the summary bar since its width is fluid and render the graphs with that width. And whenever the window is resized the graphs are deleted from the page and re-drawn onto the page with the width of the summary bar. A delay has been added to the window resize event so the graphs aren't being reset every pixel. Not sure how suitable this method is. |
|
There is a cleaner way to make the graphs responsive. If the width attribute is not specified, then the graphs take the width of their parent container (which is responsive via twitter bootstrap). So I can get rid of the following code from my previous commit. var responsiveWidth = function() {
return document.getElementsByClassName('summary_bar')[0].clientWidth;
};But as I mentioned I don't know if there is a better way to resize the graphs without re-rendering them. Let me know if we should wait till we get a better way to resize the graphs or if I can go ahead and make a commit with the above code and the graphs width attribute removed. |
|
This looks fantastic. I'll merge as is but if you or @brandonhilkert have ideas to improve the graph rendering, just send a new PR. |
Make status summary responsive, relating issue #1025





Based on the issue #1025 and the last design.