Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Properly target internal elements
Added support for optional `maxWidth` and `maxHeight` for `fluid` type images. The internal elements (padding for fluid, bgcolor for fixed) are both lacking class names to target specifically but both are the 1st children. Due to review constraints they are being targeted with a pseudo-selector, if the internal structure changes this will of course break. Note that the `fixed` type image has width/height attributes as well that are hard-coded to the first image in SSR build. Not tested if that causes any problems, I think it might affect `object-fit: cover`, but only with `critical` images where these attr values are used until image request responds(or re-validates if cached).
- Loading branch information