I am trying to create a horizontal masonry grid using Swiper.js to arrange tags in 2 rows.
However, I am encountering two issues with my current implementation using Swiper.js:
The width is not calculated correctly, causing the last item to be cut off. I want to implement a masonry layout, but due to the styling being set to flex, the items do not align closely together and the child widths are being determined by a larger width.
I have looked through various issues on GitHub but couldn't find the answer I was looking for.
If anyone has encountered and resolved similar issues, please help.
The final layout I want to achieve is as follows:
Here's my demo