layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

Button doesn't scroll back to original expanded position

Open Jeffrin2005 opened this issue 7 months ago β€’ 4 comments

Description

When clicking "Read More" on a workshop card in the Cloud Native Workshops grid (at /learn/workshops), the card expands correctly. However, when clicking "Read Less", the card doesn't scroll back to its original row position where it was expanded from.

Expected Behavior

When clicking "Read Less", the page should smoothly scroll back to the exact row position where the card was originally expanded from

Video Clip

https://github.com/user-attachments/assets/7605553d-c9b4-4f4f-91e8-65838c89c444

Environment:

  • Host OS:
  • Browser:

Contributor Resources and Handbook

The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the master branch.

Join the Layer5 Community by submitting your community member form.

Jeffrin2005 avatar May 01 '25 05:05 Jeffrin2005

Hello @Jeffrin2005! Can I help fix this issue?

ivioje avatar May 01 '25 10:05 ivioje

@ivioje Sure. you can tag the team members for working this issue - vivkevishal or leecalcote. cc: @vishalvivekm @leecalcote

Jeffrin2005 avatar May 01 '25 11:05 Jeffrin2005

@ivioje Sure. you can tag the team members for working this issue - vivkevishal or leecalcote. cc: @vishalvivekm @leecalcote

Alright. Thanks! Hello @vishalvivekm @leecalcote

I confirm that I've read the CONTRIBUTING.md file.

ivioje avatar May 01 '25 12:05 ivioje

Any update on this @ivioje

@vishalvivekm Can I work on this issue?

oseniabdulhaleem avatar Jun 13 '25 09:06 oseniabdulhaleem

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 27 '25 00:06 stale[bot]

hello @Jeffrin2005 @vishalvivekm ,

Could i be assigned this issue.

Approach to fix the issue: Store the scroll position of the card when "Read More" is clicked, and on "Read Less", use window.scrollTo with smooth behavior to scroll back to that stored position.

HIMU-2001 avatar Jun 28 '25 06:06 HIMU-2001