Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-7446

Image block: Respect the Expand on click option for the Lightbox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Merged
    • Icon: Should have Should have
    • 2.140.0
    • 3
    • Media Library
    • tavros

      By default, all images expand on click, but some images, like icons, don't need to expand on click.

      To address this issue, we can utilize the image block setting 'Expand on click.' According to the settings from the backend, we can make it work on the frontend.

      The default 'Expand on click' option in the image block is disabled. We need to enable it by default. If a user explicitly disables it, then only should it be disabled.

      Reference: slack thread

      This toggle comes from the native lightbox. We could investigate if it has a hook or another way to adjust our lightbox based on this setting.

            pfiguero Pedro Figueroa
            sdeshmuk Sagar Deshmukh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: