Any way to add auto height based on content for blog list and post.
Hi there, @AndyF ![]()
Do I get it right that you need it to remove the scroll bar and display all content right away?
Yes on mobile only.. or maybe restrict number of posts per page? Again mobile only
Unfortunately, it’s impossible to set a specific number of posts per page at the moment. However, this idea sounds interesting, and I’ve added it to the Wishlist on your behalf - Limit number of posts displayed on page
Also, there is no way to set the auto height based on content to completely remove the scroll bar on mobile.
The only solution is to slightly reduce the height of the images and spacing between posts:
@media screen and (max-width: 640px) {
[class*="card-container__CardContainer-sc"] [class*="background-card__BackgroundCardMediaImage-sc"],
[class*="card-container__CardContainer-sc"] [class*="MediaContainer__Container-sc"]{
padding-top: 200px !important;
}
[class*="layout__Grid-sc"] {
gap: 20px !important;
}
}
Please let me know if this explains things or if you have any questions left ![]()
Thanks Max , no real luck , shame we can’t set the pagination size, clearly it set to 10 posts ) some how .
As we have 12 posts it puts 2 on next page .. nice if would dynamical set that .. ie in this case to 6.. so both are equal amounts.
But I think it would be good to be able to set that page limit .
Thanks for trying anyway (fyi desktop is fine)
Andy
Yeah, I completely understand your use case, but the current limit (10 posts per page) is built in the widget code, and, unfortunately, there is no way to change it for now.
Let’s hope your Wishlist request gets traction with the community and the devs will be able to consider it in the future updates ![]()