Amna-Hassan04 / Serenity-Guide

SereniFi Guide is a personalized relaxation app offering meditations, breathing exercises, and calming music to help users achieve mental tranquility.
https://serenify.streamlit.app/
Other
33 stars 89 forks source link

[BUG] - The Top button #201

Open sachinggsingh opened 3 weeks ago

sachinggsingh commented 3 weeks ago

Bug Title

Top button

Description

The top button does not work properly

Steps to Reproduce

Inspect the Button’s href or onclick Attribute:

Check if the button has an href="#", as this can cause the page to scroll to the top. Replace href="#" with href="javascript:void(0);" to prevent the default behavior of scrolling to the top. If the button has an onclick event, ensure it's set up correctly to handle the intended action. Review JavaScript Event Handling:

Inspect any JavaScript functions tied to the button to ensure they don't inadvertently cause page reload or scrolling. If needed, add event.preventDefault(); within the function to stop any default scrolling behavior if the button is intended to perform a custom action. Test and Verify Behavior:

After making the above adjustments, test the button's functionality to confirm it no longer redirects to the top of the page and performs the desired action.

Expected Behavior

It should so the top home screen when clicked

Environment

windows 11

Additional Context

No response

github-actions[bot] commented 3 weeks ago

👋 Thank you! Welcome to the project! Please follow these guidelines for smooth collaboration:

  1. After completing a task, add your name and details to the Contributors Table/List.
  2. Attach relevant screenshots or videos of your contribution for transparency.
  3. Tasks are assigned on a first-come, first-served basis.
    • Avoid spamming requests for already-assigned tasks.
    • Respect the queue and wait for new tasks.
  4. Propose New Ideas: Discuss new features or suggestions in the "Ideas" channel before starting work.
sachinggsingh commented 3 weeks ago

Assign me this issue