Browser: Edge Version 120.0.2210.77 OS: Windows 11 URL: Link to a page that illustrates this issue Video: Short screen recording that illustrates this issue (free tool: jam.dev)
I often have an issue with the images for testimonials. They are being cut off, even when tools show they have enough room.
They do have space. I dont know if its just an issue with developer tools, but it only seems to affect testimonial images. From my own phone it looks okay for now
I think the problem arises primarily because the testimonial is in a simply defined css grid, which means that the calculation of the width and height of the testimonials does not work correctly (since it refers to the wrapper, which in this case is 1fr or auto). Apparently swiper js cannot handle this.
However, if you adjust your grid minimally, it should work. Instead of 1fr 1fr 1fr you should use repeat(3, minmax(0, 1fr)), and instead of 1fr on the mobile breakpoint minmax(0, 1fr).
I think you have misunderstood me. I’m talking about the grid you created that holds the testimonials, which can lead to such “side effects” (not only with the testimonials element, but in general), which is why you should use the minmax-method to prevent the overflow
I have now tested it with the grid solution you suggested, as well as just using flexbox. It keeps happening, and it is not only when developer tools are open.
I have to use these workarounds to get testimonials to stack instead of being forced to have them only swipe-able horizontally.