You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImageLightbox gains a capNatural prop. By default the modal opens
fitted to the viewport, which upscales a small source (e.g. a low-res GIF or
screenshot) until it looks soft. Set capNatural and the open fit is clamped
to the source's natural resolution (100%, 1 source px = 1 screen px), so small
images stay crisp while larger ones fit the viewport exactly as before. It only
bounds the initial open; pair it with maxZoom={1} to also stop the extended
zoom controls from magnifying past 100%. Needs the natural pixel size (from width/height or the loaded image) — until that's known the image fits the
viewport, then snaps to the cap once measured.