Skip to content

adjusted the hover line gap in right side line#1136

Merged
rishiraj38 merged 3 commits into
layer5io:masterfrom
karthik-51:Right-sidebar-hover
Jul 7, 2026
Merged

adjusted the hover line gap in right side line#1136
rishiraj38 merged 3 commits into
layer5io:masterfrom
karthik-51:Right-sidebar-hover

Conversation

@karthik-51

Copy link
Copy Markdown
Contributor

Notes for Reviewers

Fixes

Resolves #1135 – The right sidebar resize handle hover highlight did not align correctly with the sidebar border.

What Changed

Updated the left offset of the right resize handle to improve alignment:

.resizable--left .resizable__handle {
  left: -5.3px;
}

Previously, the offset was:

left: -5px;

The small adjustment ensures the hover highlight aligns precisely with the sidebar border.

Result

  • The right sidebar hover highlight now aligns correctly with the border.
  • The left and right sidebar resize handles now behave consistently.

Screenshots

Right Sidebar (After Fix)

Right sidebar after fix

Left Sidebar (Reference)

Left sidebar reference

Both sidebar resize handles now align with their respective borders as expected.

Signed-off-by: karthik_51 <mandhalakarthikreddy@gmail.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adjusts the left handle position of the resizable component in _resizable.scss to a fractional pixel value (-5.3px). The review feedback correctly points out that using fractional pixels is a subpixel rendering anti-pattern that can cause inconsistent rendering across devices, and suggests reverting to an integer value.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread assets/scss/_resizable.scss Outdated
}
.resizable--right .resizable__handle { right: -5px; }
.resizable--left .resizable__handle { left: -5px; }
.resizable--left .resizable__handle { left: -5.3px; }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Using fractional pixel values like -5.3px is a subpixel rendering anti-pattern in CSS. Because browsers round fractional pixels differently depending on the device's pixel ratio (DPI/Retina screens) and the browser's rendering engine, this can lead to blurry rendering, inconsistent alignment, or 1px gaps across different devices and zoom levels.\n\nAdditionally, this introduces asymmetry between the left and right handles (-5px vs -5.3px). It is highly recommended to use integer pixel values (e.g., -5px or -6px) to ensure consistent, crisp rendering across all devices.

Suggested change
.resizable--left .resizable__handle { left: -5.3px; }
.resizable--left .resizable__handle { left: -5px; }

@karthik-51

Copy link
Copy Markdown
Contributor Author

@Bhumikagarggg and @Bharath314 could you please review it ??

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.6.3
Preview removed because the pull request was closed.
2026-07-07 20:15 UTC

Signed-off-by: karthik_51 <mandhalakarthikreddy@gmail.com>
@karthik-51

karthik-51 commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Adjusted pixel size to integer as per suggestion. Could anyone please review it??

@Bhumikagarggg Bhumikagarggg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@Bharath314 Bharath314 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this on a wide variety of layouts and it works correctly. I don't see any regressions being introduced by this. LGTM! 🚀

@rishiraj38 rishiraj38 merged commit 1e24a1e into layer5io:master Jul 7, 2026
3 of 4 checks passed
@welcome

welcome Bot commented Jul 7, 2026

Copy link
Copy Markdown

        Thank you for contributing to the Layer5 community! 🎉 \ \ Congrats! \ \         ⭐ Please leave a star on the project. 😄

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Right sidebar hover highlight doesn't line up with it's border

4 participants