Force site template screenshot size with CSS
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3578579. --> Reported by: [lauriii](https://www.drupal.org/user/1078742) Related to !845 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Site template screenshots in the installer can have inconsistent dimensions if template authors don't follow the sizing guidelines exactly.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <ol> <li>Edit drupal_cms_installer/site_templates.yml to include a site template with a screenshot that doesn't follow the sizing guidelines</li> <li>Run the Drupal CMS installer</li> <li>Confirm that the template selector has now screenshots with inconsistent dimensions.</li> </ol> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Apply CSS to force consistent image dimensions on the site template screenshots in the installer UI. Template authors should still be encouraged to follow the sizing guidelines, but the UI should be resilient to variation.</p> <h3 id="summary-ui-changes">User interface changes</h3> <p>Site template screenshots will be consistently sized.</p> <h3 id="summary-data-model-changes">Configuration changes</h3> <p>None.</p>
issue