Problem/Motivation

In some cases, it is more important for the preview to maintain its aspect ratio than to display the actual pixels.
I propose adding a checkbox to the device form that controls this behavior.

Proposed resolution

If the new checkbox is selected, resizing the preview window will adjust both the width and height, ensuring that the aspect ratio specified by the device width and height remains consistent.
This would also be a good opportunity to improve the title bar text.

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mrshowerman created an issue. See original summary.

mrshowerman’s picture

Assigned: mrshowerman » Unassigned
Status: Active » Needs review

Created an MR that implements the feature.

AI disclosure: Codex was used for this, especially the tests. I reviewed and tested all changes.