Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSidebar collapsed/expanded is reversed for small width/mobile #217
Comments
|
Since this is due to CSS @media queries, I'm thinking of trying to detect them directly through Javascript, along these lines: http://zerosixthree.se/detecting-media-queries-with-javascript/ |
…ar transitions (instead of when the toggle button is clicked).
…ar transitions (instead of when the toggle button is clicked).
This script:
works as expected in a laptop-sized screen:


but it's reversed for small-width/mobile screens:
Note
This is a smaller problem than it appears because I suspect no-one (or very few people) are actually interested in the value of
input$sidebarCollapsed. Rather, they just want the sidebar to look the same once they bookmark their app (which will happen as long asinput$sidebarCollapsedhas the same value, even if it is the wrong value). Nonetheless, this should be fixed.