layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

[Fix] #6331 Fix Text Input Code Section & Enable Scrolling in Component Sidebar

Open Ayushmore1214 opened this issue 6 months ago • 6 comments

…tioning

Description This pull request resolves both the issues mentioned in #6331:

Text Input Code Section Completed

Component Sidebar Made Scrollable with max-height and sticky positioning

Changes Made :

  1. Text Input Code Section Replaced the placeholder "Sorry, this page is still under work" message with an actual usage example of the Input component.

Used

 blocks to manually render the example code without requiring external libraries like react-syntax-highlighter.

Ensures users can view copyable JSX code to help understand usage of the @layer5/sistent Input component.

  1. Sidebar Scroll Fix Updated the .sidebar class in SistentWrapper styled component.

Replaced the hardcoded height: 150rem with:

This ensures the sidebar does not overflow, remains visible, and is scrollable on smaller screens or when many components are listed. This PR fixes #6331

Notes for Reviewers Thanks to the Layer5 community and maintainers for the opportunity to contribute!

Signed commits

  • [x] Yes, I signed my commits.

Ayushmore1214 avatar Jun 12 '25 10:06 Ayushmore1214

🚀 Preview for commit 97a0120ee92f3e810c6ae5c5131166b560e875e5 at: https://684ab04743cebb0517bbb7f2--layer5.netlify.app

l5io avatar Jun 12 '25 10:06 l5io

@Ayushmore1214 Thank you for your contribution! Let's discuss this during the website call today at 5:30 PM IST | 7 AM CT

Add it as an agenda item to the meeting minutes, if you would :)

vishalvivekm avatar Jun 16 '25 11:06 vishalvivekm

🚀 Preview for commit 5e27093407373e11f539daa0db72e5bce41b7161 at: https://684fff15cbe011b1d6e90d2a--layer5.netlify.app

l5io avatar Jun 16 '25 11:06 l5io

Is this done @Ayushmore1214 @LibenHailu ??

vr-varad avatar Jun 20 '25 10:06 vr-varad

I think it's done from my side

Ayushmore1214 avatar Jun 20 '25 10:06 Ayushmore1214

Screenshot (222) You can see my changes here

Ayushmore1214 avatar Jun 20 '25 11:06 Ayushmore1214