Skip to content

fix(integrations): reduce excessive bottom space in honeycomb grid (#7511)#7514

Open
LeC-D wants to merge 1 commit intolayer5io:masterfrom
LeC-D:fix/integrations-reduce-bottom-space
Open

fix(integrations): reduce excessive bottom space in honeycomb grid (#7511)#7514
LeC-D wants to merge 1 commit intolayer5io:masterfrom
LeC-D:fix/integrations-reduce-bottom-space

Conversation

@LeC-D
Copy link

@LeC-D LeC-D commented Mar 15, 2026

Description

Fixes #7511

The integrations page (/cloud-native-management/meshery/integrations) shows a large empty space below the last row of integration hexagons.

Root Cause

In Honeycomb.style.js, the ul element's explicit height is computed as:

height: calc(${props.$height}px + 46px)

The $height value is already calculated precisely in Honeycomb.js based on the number of hexagon rows (e.g. pairsCount * 272 + 130). The extra + 46px was adding ~43px of unnecessary empty space below the last row.

Fix

Reduced the buffer from 46px to 3px — matching the margin applied to each li element — to preserve the small visual buffer needed for the bottom row while eliminating the large gap.

- height: ${(props) => props.$height === 0 ? "unset" : `calc(${props.$height}px + 46px)`};
+ height: ${(props) => props.$height === 0 ? "unset" : `calc(${props.$height}px + 3px)`};

Testing

  • Verified that hexagon height math: 150px * 1.1547 ≈ 173px, negative margin ≈ -40px, net ≈ 136px/row — consistent with 272px per pair used in Honeycomb.js, confirming the explicit height needs no additional large buffer.

…ayer5io#7511)

The HoneycombGrid ul element had an extra 46px added to its explicit
height (calc(height + 46px)). Since the height is already calculated
precisely in Honeycomb.js based on hexagon row counts, this 46px
surplus was creating empty vertical space below the last row of
integrations on the /integrations page.

Reduced from +46px to +3px (matching the margin value applied to each
li element) to eliminate the visual gap while preserving the small
buffer needed for the bottom row's top margin.

Signed-off-by: Léo (LeC-D) <leo.openc@gmail.com>
@l5io
Copy link
Member

l5io commented Mar 15, 2026

🚀 Preview for commit 7f2c791 at: https://69b70095afd869ed4bdb8a68--layer5.netlify.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reduce empty space after all integration section

2 participants