Excessive Whitespace Around Components

I’m finding that there appears to be a lot of whitespace around elements that I have no control over. Is there somewhere that this is being specified so I can tighten things up?

The first place I notice this is with the navbar. By default, it is really tall, and I cannot find any way to reduce the height I can find.

The same applies to an SVG that I placed within a Flex Item. The Flex Item ends up being square even though the SVG is a narrow rectangle. With the Flex Item, I partially fixed the problem by using the translate settings, which remove the excess whitespace below the SVG but add more above. I’m assuming this is because it simply adjusts the position of the SVG within the Flex item. Maybe I don’t have the Flex setup correctly.

Of course, this could all be a user error, but I thought I would try to find out how to reduce the problem.

NOTE: I have not added any padding or margins around these items.

Hi Robin! It would great if you could provide a screenshot or two and your project file so we can get a better understanding of what you’re seeing :slight_smile:

Attached is a screenshot that I have marked up showing where all the whitespace is located. Does this help?

How do I send the project file?

You can upload it to we transfer and post the link here!

Here is a link to the file on Dropbox.

https://www.dropbox.com/scl/fi/o7w6p8qlitmuutgipmz5p/GB24-BOX-2024-07.elements.zip?rlkey=7ke8m1a6kf408qud8e2mt4kfo&st=whwhz8hg&dl=0

For the Menu: right now there are no styling options for the padding/height of the Menu. It is something we could add though :slight_smile:

Keep in mind that the Sections are designed to be ready to go “out of the box”, and not have an overwhelming amount of styling options. They should be dropped on the page and look great.

We do, however, want to make all the Section components flexible enough so you can customise them just enough to make them your own :smiley:

what happened to the navigation as shown in videos 9 10 and 11

This is the type of navbar I’m attempting to construct but from what I have discovered so far it does not look possible. This is a sticky navbar that stays at the location shown as the content scrolls.

One thing I have not been able to discover with the Menu component in Elements is a means fo indicating the currently active page in the navbar. It seems there are a few missing settings for achieving this, including a HOVER background color and an ACTIVE page background color. Am I missing something.

We will be adding more Menus in the coming weeks that will cover many more styles and options :blush:

2 Likes

Awesome, I look forward to seeing what you come up with.

If you want the navbar to never move, then in Navbar, set the positioning to fixed and set a vertical amount.

Yes, I had discovered that and applied it to the menu, so now it has the look I was after. The only remaining issue is reducing the height of the menu, when that becomes available.

I also need to figure out how one gets the items in the navbar right aligned instead of centered.

I’d also like to know how I can get rid of the drop zone at the right edge of the navbar?

This is how it now looks.

We removed some of the prototype Components for the Beta while we worked out what users want/need. You can expect many more components and options as the beta progresses - we will be focused around added user requests :slightly_smiling_face:

That is only visible in the editor, if you preview the site in your browser you’ll notice the drop zone has gone :smiling_face:

+1 on this. One of my current sites does this and I’d like to be able to reproduce it:

1 Like

Yes, I did notice that it is only present in the editor.

My main reason for wanting to hide it was because when previewing the MOBILE menu there is this huge drop zone at the bottom of the view.

Exactly. I use a similar approach but I also use the background of the active page to make it pop a little more.

One thing I discovered that was impacting the amount of whitespace around an SVG component was the fact that when specifying the SIZE of the component. An assumption appears to being made that the SVG is a SQUARE. But if it is in fact a rectangle a lot of extra space can be added to the SVG, in my case to the top and bottom.

It seems there should be an option to specify both the width and height of the SVG, not just a size value. Or it should initially use the VIEWBOX of the SVG if present and then allow the size to be scaled.

You’re correct. We need to improve the SVG settings to account for this. Hopefully this will be in the next beta :slight_smile: