Dear team, What I’m trying to do:
I am building a web app for people to advertise their cars for sale. . It looks pretty on my laptop and tablet, but the view is not friendly on smaller mobile phones, especially the
What I’ve tried and what’s not working:
So far, i’ve come up with the app as shown in the clone. It includes a column-panel that houses the search box, and a repeating panel to display the cars with the following CSS:
Code Sample:
.anvil-role-2-cols > div {
display: grid;
grid-template-columns: repeat(3, 1fr);
column-gap: 3%; /*adjust as needed*/
}
@media screen and (min-width: 768px) {
.anvil-role-2-cols > div {
display: grid;
grid-template-columns: repeat(3, 1fr);
column-gap: 3%; /*adjust as needed*/
overflow-x:auto;
}
I’ve just done one these and it’s really pretty on mobile now. I used wrap from tablet down and it’s really effective and has done well on user feedback.
I think i have the repeating panel working. My current challenge is how do I make the search box on mobile appear as it does on tablet or pc? The current view is a row for each component(textbox,label)
Okay, had a look. On your outlined card and col panel where the search is, flick wrap to tablet, then take your fixed widths out of the form code and it’s lovely.