Skip to content

Button doesn't scroll back to original expanded position #6417

@Jeffrin2005

Description

@Jeffrin2005
Contributor

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

16-fix.mp4

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.

Activity

ivioje

ivioje commented on May 1, 2025

@ivioje

Hello @Jeffrin2005! Can I help fix this issue?

Jeffrin2005

Jeffrin2005 commented on May 1, 2025

@Jeffrin2005
ContributorAuthor

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

ivioje

ivioje commented on May 1, 2025

@ivioje

@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.

oseniabdulhaleem

oseniabdulhaleem commented on Jun 13, 2025

@oseniabdulhaleem

Any update on this @ivioje

@vishalvivekm Can I work on this issue?

stale

stale commented on Jun 27, 2025

@stale

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.

added
issue/staleIssue has not had any activity for an extended period of time
on Jun 27, 2025
HIMU-2001

HIMU-2001 commented on Jun 28, 2025

@HIMU-2001

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.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Participants

    @oseniabdulhaleem@ivioje@HIMU-2001@vishalvivekm@Jeffrin2005

    Issue actions

      Button doesn't scroll back to original expanded position · Issue #6417 · layer5io/layer5