Skip to content

Add scroll-behavior: smooth to Markdown anchor links #37454

@jussara-ti

Description

@jussara-ti

Feature Description

Currently, when clicking a documentation link that redirects to another section within the same Markdown file, the page jumps abruptly. We noticed that users in our environment reported feeling confused by this, as the sudden transition sometimes makes them think they were redirected to a different file rather than just navigating the same document. I tested applying the scroll-behavior: smooth CSS property via browser DevTools (F12) and it worked perfectly to provide a smooth visual transition, keeping the user's context intact and improving the UX. I searched the existing issues and couldn't find anything related to this enhancement. Implementing this would significantly enhance the reading flow and make navigating extensive documentation in Gitea much more intuitive.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions