Add support for selecting a responsive image style for the Photoswipe modal image, similar to the Thumbnail image style option

Created on 9 May 2025, 28 days ago

Problem/Motivation

There is currently no way to define a responsive image style for images displayed in the Photoswipe modal window when using the Photoswipe Responsive formatter.
In the Photoswipe Responsive formatter, it is currently possible to select a responsive image style for the Thumbnail image style field.
It would be logical and consistent to allow specifying a responsive image style for modal images in the same way, especially since responsive image handling is essential for modern web projects.

Steps to reproduce

Add a field with the Photoswipe Responsive formatter.

Try to set a responsive image style for images displayed in the modal window.

There is no option available to configure it β€” only the thumbnail image style is configurable.

Proposed resolution

Add a new setting to the Photoswipe Responsive field formatter that allows selecting a responsive image style for the modal image, similar to how it is already done for the thumbnail image.

Remaining tasks

Add a formatter setting for the modal responsive image style.

Update the formatter plugin to render images in the modal using the selected responsive style.

Adjust validation and fallback behavior.

Write/update tests if applicable.

User interface changes

A new dropdown/select field in the field formatter settings form to allow selecting a responsive image style for the modal image.

✨ Feature request
Status

Active

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Kostiantyn

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024