Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove SplitView preview option if the device cannot use it. #3338

Closed
wants to merge 2 commits into from
Closed

Remove SplitView preview option if the device cannot use it. #3338

wants to merge 2 commits into from

Conversation

stojg
Copy link

@stojg stojg commented Jul 28, 2014

Only show the Split View option in the "Change view mode" menu if the device has a screen width capable of using it. The width is only checked when the CMS initially loads; manually resizing the window afterwards will not disable the option.

This builds on #3291 but adds a js library respond.js to all LeftAndMain admins that is a "polyfill for min/max-width CSS3 Media Queries (for IE 6-8, and more)"

@@ -0,0 +1 @@
Subproject commit 6d9b409a80e44438ca78808be26f8602a8a88479
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably just be included directly rather than using a submodule (especially since there's no .gitmodules)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that was a newbie mistake. Good thing the tests did pick this up as well.

Elliot Sawyer and others added 2 commits July 29, 2014 13:41
…evice has a screen size capable of using it. This uses CSS media queries and will not work with IE8
@stojg
Copy link
Author

stojg commented Jul 29, 2014

Well, that was a pain in the neck to sort that out..

@halkyon
Copy link
Contributor

halkyon commented Jul 29, 2014

Seems to generally work, but if you drag the width of the window to just before the point where the preview frame appears, the "Split view" option still shows. Dragging the window to a much smaller size hides the option, which is correct.

@stojg stojg closed this Feb 17, 2016
@stojg stojg deleted the pull/disable-split-view-on-small-screens branch February 17, 2016 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants