tomusborne / generateblocks

GenerateBlocks is a small collection of lightweight WordPress blocks that can accomplish nearly anything.
https://generateblocks.com
188 stars 18 forks source link

Block based themes don't auto size images GB Images break containment on frontend. #1172

Open diggeddy opened 5 months ago

diggeddy commented 5 months ago
  1. Activate Twenty24 theme
  2. Add a GB Query Loop block, choose the default template with images:

backend looks correct:

Screenshot 2024-01-19 at 13 15 47

front end , the images break containment:

Screenshot 2024-01-19 at 13 16 11

This doesn't happen in GP ( GP clones ) as we add this kind of CSS

img { max-width: 100%; height: auto; } The issue can be resolved with this CSS or by setting the Image Blocks settings accordingly. So it is fixable, but its not a pleasant UX as the front end and backend don't match.

A potential fix would be to add defaults to the image block settings.... but we know where that can lead.