Problem/Motivation
This is a followup to #1741498-39: Add a responsive preview bar to Drupal core.
Currently, the responsive preview feature only allows for a page to be previewed in portrait mode of a device.
This feature should be extended so that a user can toggle between portrait and landscape previews.
Proposed resolution
Design a control (button toggle) that will trigger an orientation change in the preview. Update the code to swap the width/height dimensions when the toggle is activated. Put in a nice transition animation.
Remaining tasks
- Design
- Implementation
User interface changes
The current preview UI will be extended with an orientation toggle.
API changes
None
Comments
Comment #1
jessebeach commentedWe need to also address preview containers that are too high for the current viewport. Either they should not be allowed or the preview window should scroll to accomodate them.
Comment #2
jessebeach commentedAddressed in #1741498-60: Add a responsive preview bar to Drupal core