bramkragten/swipe-card

swiper does not update size

matt8707 opened this issue · 2 comments

I'm using custom:layout-card and the swiper container does not update its size unless I resize the window (ResizeObserver). The same behaviour can be observed in edit ui, but not when not in edit mode. I have attached a video of what it looks like.

Is it possible to update swiper more often or should I take this issue to layout card?

Thanks!

swiper.mp4

Updating only on window resize is how the underlying Swiper library works by default, but you can try using the breakpointsBase parameter to switch it to resize with the container. Note that the documentation calls it a "beta" feature, so it may not work.

That sadly seems to have no effect, dependency 6.5.9

parameters:
  breakpointsBase: container

I've fixed most issues with css, the only remaining is opening/closing the sidebar on desktop