Jump to content

Shorten height of restaurant menu block on mobile

Recommended Posts

Site URL: https://smallsisgood.com/menu-copy

Trying to implement the menu block for a restaurant and it works great, except on mobile the height is always as tall as the longest section of the menu (drinks) which results in a lot of blank space when viewing other sections (grab & go, salads, sandwiches, etc.). Is there a way to tighten up the height to show only what is needed for the section being viewed?

smallsisgood.com/menu

Edited by melmotz
corrected url
Link to comment
  • Replies 11
  • Views 373
  • Created
  • Last Reply

Top Posters In This Topic

On 8/13/2022 at 10:13 PM, tuanphan said:

Add to Design > Custom CSS

@media screen and (max-width:767px) {
div#block-62cf28615a9fcf882af7a442 {
    height: auto !important;
}
}

 

Thanks @tuanphan! That doesn't seem to do it, though. The page still defaults to the length needed for the menu section that is the longest, regardless of which section you're viewing. Any other ideas?

Link to comment
On 8/11/2022 at 10:16 PM, melmotz said:

Site URL: https://smallsisgood.com/menu-copy

Trying to implement the menu block for a restaurant and it works great, except on mobile the height is always as tall as the longest section of the menu (drinks) which results in a lot of blank space when viewing other sections (grab & go, salads, sandwiches, etc.). Is there a way to tighten up the height to show only what is needed for the section being viewed?

smallsisgood.com/menu-copy 

The url doesn't work. Can you check it again?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 8/18/2022 at 12:47 AM, melmotz said:

Thanks @tuanphan! That doesn't seem to do it, though. The page still defaults to the length needed for the menu section that is the longest, regardless of which section you're viewing. Any other ideas?

It worked here. Can you check it again?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

@tuanphan, on mobile the white box is the correct size, but the page has blank space equal to the height of the longest section of the menu (which is Drinks). So on all other menus there is tons of blank space beneath the menu. Does that make sense?

Link to comment
On 8/11/2022 at 10:16 PM, melmotz said:

Site URL: https://smallsisgood.com/menu-copy

Trying to implement the menu block for a restaurant and it works great, except on mobile the height is always as tall as the longest section of the menu (drinks) which results in a lot of blank space when viewing other sections (grab & go, salads, sandwiches, etc.). Is there a way to tighten up the height to show only what is needed for the section being viewed?

smallsisgood.com/menu-copy 

The page url doesn't work now

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 9/2/2022 at 1:22 AM, melmotz said:

@tuanphan it should work now at smallsisgood.com/menu

Try adding to Design > Custom CSS

@media screen and (max-width:767px) {
.fe-62cf286108eb94027ab3a593 {
    grid-template-rows: repeat(15,minmax(24px, auto)) !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.