PurpleTurtleCreative / completionist

Asana integration plugin for WordPress.
https://purpleturtlecreative.com/completionist/
GNU General Public License v3.0
1 stars 0 forks source link

Style images that failed to load #155

Closed MichelleBlanchette closed 1 year ago

MichelleBlanchette commented 1 year ago

I get cURL timeouts arbitrarily in my Docker environment for whatever reason. Anyways, it causes proxied attachments to fail to load sometimes. When this happens, the <img> is loaded with its intrinsic width and height, breaking the container. You fix this by:

img.--is-error {
    width: 100%;
}

Apparently max-width: 100% isn't working how I thought..? Perhaps I should always just use width: 100%, then..? I'm not sure how that works with maintaining the aspect ratio, so some investigation is needed.