I am looking for some blocks to add to a mobile-first page.
Firstly, a button-based filter like this.
I can do it in my own repeating group, but I can never make it shrink nicely. Have had a look but I don’t think I can see anything similar. Is there something I could modify instead?
The 2 Columns Tiles block is great, but it goes to 1 column wide on mobile, and I really would like it to be 2 column square like this.
Before I start hacking the block, is this the right place to start ?
We’re currently in the process of creating a block that will allow you to create button based filters
It will most likely be published in the next few weeks and we’ll definitely keep you posted.
To get the 2 Columns Tiles block to remain as 2 columns on mobile, please follow the instructions below:
Decrease the Repeating group’s current cell’s minimum width
Remove the image element from the tiles group.
Replace the image with a group (make sure this group contains Group Main price_number)
Within the group in step 2, add a collapsible group with the following conditional statement
Add conditional statements to the link element
Group star rating and description text and hide the group
In the Responsive editor, add a hiding rule to Group Main more_Dummy
Feel free to let me know if you have any additional questions! Thank you for using Canvas.
I needed to adjust the Cell min width in the RG
Which works so I hope it is the right work!
p.s. I really don’t understand how the RG can be 890 wide inside an 860 group
…I know it works, and is possible, but not sure what it is meant to be doing!
Adjusting the cell min width works too! I found that sometimes the images don’t scale well on mobile and hence the group background workaround
We make the repeating group wider than the container group in order to ensure the padding on the sides of the grid tiles are consistent. This doesn’t seem to affect responsiveness but feel free to adjust the width accordingly.
Oh, how did you do it? I may have missed something in your explanation. Without it the tiles expand to fill the width on mobile.
Yes, the algorithm for resizing is working really hard here as you scale down. It isn’t always perfect but it is magic when it works!
@Nigel I think that’s exactly right; decreasing the current cell’s minimum width to ~150px (or slightly less) will force the RG to stay at 2-columns on mobile.
@nigel I missed that step in the instructions above (let me add that back to the main post) but I indeed did change current cell’s minimum width!