AlchemyCMS / alchemy_cms

Alchemy is the Open Source Rails CMS framework for the component based web that can be used as classic server side rendered or headless CMS.
https://www.alchemy-cms.com
BSD 3-Clause "New" or "Revised" License
817 stars 313 forks source link

Adjustable preview sizes #2923

Closed tvdeyen closed 3 weeks ago

tvdeyen commented 4 weeks ago

What is this pull request for?

You are now able to configure preview sizes in the alchemy/config.yml file.

page_preview_sizes:
  - 360
  - 640
  - 768
  - 1024
  - 1280
  - 1440

and adjust them to your breakpoints. Translate the value with alchemy.preview_sizes.<value> in your locale file.

Notable changes

Use normal select for preview sizes

Screenshots

Alchemy CMS - Startseite 2024-06-06 23-23-09

Checklist

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.97%. Comparing base (efb901e) to head (f055396).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2923 +/- ## ======================================= Coverage 95.97% 95.97% ======================================= Files 232 232 Lines 6279 6280 +1 ======================================= + Hits 6026 6027 +1 Misses 253 253 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.