Skip to content

0.37.0 — ImageLightbox `capNatural` accepts a multiple

Choose a tag to compare

@github-actions github-actions released this 04 Jun 21:50
· 7 commits to main since this release

Added

  • ImageLightbox's capNatural now takes a number as well as a boolean.
    true still caps the open fit at 1:1 (100%); a number caps at that multiple of
    the source's natural resolution (capNatural={2} = up to 200%). This allows a
    small source to open a little larger than native without being upscaled all the
    way to the viewport. Backward compatible — the boolean form is unchanged.