-
Notifications
You must be signed in to change notification settings - Fork 1.6k
fix: black gap on on cloud in sidebar (#7383) #7427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Welcome to the SigNoz community! Thank you for your first pull request and making this project better. 🤗 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to c42c18e in 58 seconds
More details
- Looked at
41
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
5
drafted comments based on config settings.
1. frontend/src/container/SideNav/SideNav.styles.scss:105
- Draft comment:
Good use of flexbox on .nav-wrapper and .primary-nav-items to distribute space evenly and enable scrolling. This should resolve the gap issue efficiently. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
2. frontend/src/container/SideNav/SideNav.styles.scss:124
- Draft comment:
Removing fixed positioning from .secondary-nav-items in favor of flex properties is a neat fix. Ensure that this change doesn’t impact behavior on different viewport sizes. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
3. frontend/src/container/SideNav/SideNav.styles.scss:107
- Draft comment:
Good use of flex properties in .nav-wrapper to distribute space. Verify that the calc(100% - 52px) height works consistently across all viewports. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
4. frontend/src/container/SideNav/SideNav.styles.scss:112
- Draft comment:
The additions of display: flex, flex-direction: column, flex: 1, and min-height: 0 in .primary-nav-items ensure a proper scrollable area within the flex container. Looks solid. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
5. frontend/src/container/SideNav/SideNav.styles.scss:125
- Draft comment:
The removal of fixed positioning in .secondary-nav-items in favor of flex layout is appropriate for eliminating the gap. Ensure that this change maintains the intended bottom alignment in all scenarios. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
Workflow ID: wflow_9q7MOXakhI2CLtPr
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. @YounixM
Co-authored-by: Vikrant Gupta <[email protected]>
Summary
Fixed an issue in the side navigation where a black gap would appear when there were many primary navigation items. The solution implements a flexbox layout approach for both primary and secondary navigation items, ensuring proper vertical spacing and eliminating the unwanted gap at the bottom of the navigation panel.
Related Issues / PR's
#7383
Screenshots
Screenshots are illustrated by duplicating the nav items

Before:
After:

Affected Areas and Manually Tested Areas
Component: SideNav component
File modified: frontend/src/container/SideNav/SideNav.styles.scss
Changes:
Testing: Manually tested with various numbers of navigation items to ensure the gap no longer appears and that all items remain accessible.
Important
Fixes black gap in sidebar by switching to flexbox layout in
SideNav.styles.scss
, ensuring proper spacing and accessibility.SideNav.styles.scss
.nav-wrapper
,primary-nav-items
, andsecondary-nav-items
.flex-direction: column
and adjustsflex
properties for proper spacing and growth.position: fixed
,bottom: 0
, andleft: 0
fromsecondary-nav-items
.max-height
constraints causing the gap.This description was created by
for c42c18e. It will automatically update as commits are pushed.