Alt text overflows when images can’t load
Describe the bug
Because of #470, some of my images can’t load. And their Alt text overflows a lot and covers other parts of the page, making it unreadable.
Steps to reproduce
- Have an image with an invalid src and a long alt text somewhere in the interface. (e.g.
https://mydomain.com/cp-admin/podcasts/1/episodes/1
, the tiny podcast and episode cover on the left navigation sidebar. But it seems like it works anywhere there is an image with an alt text, even on the public pages of the instance, etc)
Expected behavior
The alt text should wrap and stay inside the image, without overflowing the dimensions of the image
Actual behavior
The alt text overflows outside the size of the image and covers big parts of the rest of the page
Relevant logs and/or screenshots
(see the two image tags in the code)
Context
- Castopod: Castopod 1.11.0
- Browser: Firefox 125.0
Possible fixes
I would look at something like this: https://stackoverflow.com/questions/51326819/alt-text-of-broken-image-overflows-bounds
Edited by Thomas K